PHP code example of qingbing / yii2-configure
1. Go to this page and download the library: Download qingbing/yii2-configure 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/ */
qingbing / yii2-configure example snippets
'controllerMap' => [
// table 表头控制
'header-category' => \YiiConfigure\tableHeader\controllers\HeaderCategoryController::class,
'header-option' => \YiiConfigure\tableHeader\controllers\HeaderOptionController::class,
// form 表单控制
'form-category' => \YiiConfigure\form\controllers\FormCategoryController::class,
'form-option' => \YiiConfigure\form\controllers\FormOptionController::class,
'form-setting' => \YiiConfigure\form\controllers\FormSettingController::class,
]
'components' => [
'bootAccessLog' => [
'class' => \YiiAccessLog\boots\AccessLogBootstrap::class,
'accessLogModel' => \YiiAccessLog\models\AccessLogs::class, // 日志模型类
'open' => define_var('COM_BOOT_ACCESS_LOG_OPEN', true), // 开启访问日志
'ignorePaths' => [
'*/list', // 列表的日志不记录,太大
],
],
],
// bootAccessLog 组件配置
defined('COM_BOOT_ACCESS_LOG_OPEN') or define('COM_BOOT_ACCESS_LOG_OPEN', true); // 开启访问日志