承接 locality/cakephp-authorize 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

locality/cakephp-authorize

Composer 安装命令:

composer require locality/cakephp-authorize

包简介

CakePHP plugin including a new authorize class for the Acl component.

README 文档

README

This plugin contains a new authorize class for use with the Acl component.

When the ActionsAuthorize maps requests to ACO nodes, it only allows for a maximum length of /:plugin/:controller/:action. The PathAuthorize class included with this plugin will allow you to use ACO nodes that include the record ID. So the path can now look like /:plugin/:controller/:action/:id. Allowing you to use the ACL to restrict access to individual records.

Requirements

  • PHP 5.2.8
  • CakePHP 2.x

Installation

[Git]

In your CakePHP plugin directory, run the following command:

	git clone https://github.com/localitysolutions/cakephp-authorize.git Authorize

[Composer]

Add to require in your composer.json file:

	{
		"require": {
			"locality/cakephp-authorize": "dev-master"
		}
	}

[Manual]

  1. Download the zipfile from here: https://github.com/localitysolutions/cakephp-authorize/zipball/master
  2. Unzip the entire contents.
  3. Rename the resulting folder to Authorize.
  4. Finally, copy it to the app/Plugin directory.

Usage

Standard CakePHP plugin installation, in app/Config/bootstrap.php insert the line: CakePlugin::load('Authorize');

To use the PathAuthorize class for authorization:

	//in $components
	public $components = array(
	    'Auth' => array(
	        'authorize' => array(
	            'Authorize.Path' => array('actionPath' => 'controllers')
	        )
	    )
	);
    //Or in beforeFilter()
	$this->Auth->authorize = array(
	    'Authorize.Path' => array('actionPath' => 'controllers')
	);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-11-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固