yiicod/systemparam 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

yiicod/systemparam

最新稳定版本:0.2.1

Composer 安装命令:

composer require yiicod/systemparam

包简介

Config params with editable in the admin panel for the Yii framework

README 文档

README

With this extension you easy config your Yii::app()->params from admin panel. You need install extension with composer and run command:

php yiic params sync

This is command for synchronize your php config with db.

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist yiicod/systemparam "*"

or add

"yiicod/systemparam": "*"

Link to source: https://bitbucket.org/yiicod/systemparam

Config ( This is all config for extensions ):

aliases' => array(
	'vendor' => 'application.vendor',
	'editable' => 'vendor.vitalets.x-editable-yii',
),
'import' => array(
        'editable.*',
),
'components' => array(
    ...
    'editable' => [
	'class' => 'editable.EditableConfig',
	    'form' => 'jqueryui',
	    'mode' => 'inline',
	    'defaults' => [
		'emptytext' => 'Click to edit',
		'ajaxOptions' => ['dataType' => 'json'], //usefull for json exchange with server
	],
    ],
    'systemparam' => array(
        'class' => 'yiicod\systemparam\SystemParam',
        'modelMap' => array(
            'SystemParam' => array(
                'alias' => 'yiicod\systemparam\models\SystemParamModel',
                'class' => 'yiicod\systemparam\models\SystemParamModel',
                'fieldParamKey' => 'paramKey',
                'fieldParamValue' => 'paramValue',
                'fieldValidator' => 'validator',
                'fieldDescription' => 'description',
                'fieldIsDefault' => 'isDefault',
            )
        ),
        'autoUpdate' => YII_DEBUG,
        'debug' => YII_DEBUG,
        'controllers' => array(
            'controllerMap' => array(
                'admin' => array(
                    'systemParam' => 'yiicod\systemparam\controllers\admin\ParamController',
                )
            ),
            'admin' => array(
                'systemParam' => array(
                    'layout' => '/layouts/column1',
                    'filters' => array('accessControl'),
                    'accessRules' => array(
                        array('allow',
                            'actions' => array('update', 'admin'),
                            'roles' => array('admin'),
                        ),
                        array('deny', // deny all users
                            'users' => array('*'),
                        ),
                    ),
                )
            ),
        ),
        'components' => array(),
    ),
    ...
)

'preload' => array('systemparam')

Should work with diffenrent urlManager config, but didn't test with different url rules.

统计信息

  • 总下载量: 22
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: New
  • 更新时间: 2015-05-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固