PHP code example of execut / yii2-settings
1. Go to this page and download the library: Download execut/yii2-settings library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
execut / yii2-settings example snippets
'bootstrap' => [
...
'settings' => [
'class' => \execut\settings\bootstrap\Backend::class,
],
...
],
'bootstrap' => [
...
'settings' => [
'class' => \execut\settings\bootstrap\Common::class,
],
...
],
'bootstrap' => [
...
'settings' => [
'class' => \execut\settings\bootstrap\Console::class,
],
...
],
echo Nav::widget([
...
'items' => \yii\helpers\ArrayHelper::merge($menuItems, \yii::$app->navigation->getMenuItems()),
...
]);
NavBar::end();
// Before standard breadcrumbs render breadcrumbs and header widget:
echo \execut\navigation\widgets\Breadcrumbs::widget();
echo \execut\navigation\widgets\Header::widget();
echo Breadcrumbs::widget([
'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
]);
<?= \yii::$app->settings->get('company-name')
'bootstrap' => [
...
'settings' => [
'class' => \execut\settings\bootstrap\Common::class,
'depends' => [
'modules' => [
'settings' => [
'plugins' => [
'own-plugin' => [
'class' => $pluginClass // You plugin class here
],
],
]
],
],
],
...
],
$ php composer.phar