定制 nod.st/cakephp-controllers-list 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

nod.st/cakephp-controllers-list

Composer 安装命令:

composer require nod.st/cakephp-controllers-list

包简介

CakePHP Controllers List

README 文档

README

A plugin contains component for generating organized controllers list with include,exclude,order,sort and cache options.

Requirements

  • CakePHP 2.1.0 or greater.

Download

$ git submodule add https://github.com/JacopKane/Cake-ControllersList.git path/to/Plugins/ControllersList```
	* Clone:

$ git submodule add https://github.com/JacopKane/Cake-ControllersList.git /path/to/Plugins/ControllersList```

Installation

  • Load the plugin at bootstrap
  • Define the component at your controller.

###Example:

<?php
//Config/bootstrap.php
CakePlugin::load('ControllersList'));

//Controller/AppController.php
public $components = array('ControllersList.GetList' => array(
		'exclude'					=> array('Pages'),
		'plugins_exclude'			=> array('DebugKit', 'CakeFoo'),
		'order_by'					=> 'order',
		'cache'						=> false
));
?>

###Other Options:

<?php
array(
	'cache'						=> true,					//must use especially if order sorting is enabled
	'log'						=> true,					//if enabled, it'll log it, everytime new cache created
	'set_disable'				=> false,					//enable to pass list as a variable to the view
	'set_variable' 				=> 'controllersList',		//variable name for getting controller lists in views
	'exclude_currentController'	=> false,					//exclude current controller
	'exclude_appControllers'	=> true,					//exclude AppController and PluginAppControllers
    'exclude'					=> array(),					//for excluding some extra controller names
    'include'					=> array(),					//for including some extra controller names
	'order_sort'				=> 'desc',					//desc or asc sorting
	'order_by'					=> 'name',					//sort by name or order
	'order_disabled'			=> false,					//for using this sorting you can add a "$order" property in your controller. enabling cache for this deadly recommended.
	'plugins_disable'			=> false,					//don't scan plugins
	'plugins_exclude'			=> array(),					//for excluding some extra plugin's controller
    'plugins_include'			=> array()					//for including some extra plugin's controller
);
?>

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2013-09-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固