- Versão: 2.1.0
- Data: 04/02/2012
- Autor: Nicolas Rod [email protected]
- Website: http://www.alaxos.net/blaxos/pages/view/plugin_acl
- License: http://www.opensource.org/licenses/mit-license.php The MIT License
Esse plugin CakePHP é uma interface para gerenciar uma aplicação protegida com ACL.
É feita para trabalhar com ACL já configurado. A documentação para configurar o ACL pode ser encontrada nos links seguintes:
- http://book.cakephp.org/2.0/en/core-libraries/components/access-control-lists.html
- http://book.cakephp.org/2.0/en/tutorials-and-examples/simple-acl-controlled-application/simple-acl-controlled-application.html
Redesenho da versão original do plugin Alaxos ACL para funcionar melhor com a biblioteca Bootstrap.
-
Baixe o plugin e coloque na sua aplicação em 'app/Plugin' ou no diretório 'plugin'
-
Configure a rota 'admin' (veja http://book.cakephp.org/2.0/en/development/routing.html)
-
Configure o plugin de acordo com a sua aplicação:
Algumas configurações devem ser lidas assim que o plugin for carregado. Elas podem ser encontradas no arquivo 'Acl/Config.bootstrap.php'.
Você tem duas opções para usar essas configurações, como o CakePHP não carrega automaticamente o arquivo bootstrap.php em plugins:
- Copie todas as configurações (em Acl/Config/bootstrap.php) para seu arquivo app/Config/bootstrap.php
ou
-
Carregue o bootstrap do plugin (adicione no final do seu arquivo app/Config/bootstrap.php):
CakePlugin::load('Acl', array('bootstrap' => true));
- Acesse o plugin navegando até /admin/acl
- Version: 2.1.0
- Date: 2012-02-04
- Author: Nicolas Rod [email protected]
- Website: http://www.alaxos.net/blaxos/pages/view/plugin_acl
- License: http://www.opensource.org/licenses/mit-license.php The MIT License
This CakePHP plugin is an interface to manage an ACL protected web application.
It is made to work with ACL already configured. The documentation to configure the ACL can be found on the following links :
- http://book.cakephp.org/2.0/en/core-libraries/components/access-control-lists.html
- http://book.cakephp.org/2.0/en/tutorials-and-examples/simple-acl-controlled-application/simple-acl-controlled-application.html
Redesign the original version of Alaxos ACL plugin to works better with Bootstrap framework.
-
Download the plugin and put it in your 'app/Plugin' or 'plugins' folder
-
Configure the 'admin' route (see http://book.cakephp.org/2.0/en/development/routing.html)
-
Configure the plugin according to your web application:
Some settings have to be read by CakePHP when the plugin is loaded. They can be found in the 'Acl/Config/bootstrap.php' file.
You have two options to use these settings, as CakePHP doesn't automatically load the bootstrap.php files in plugins:
- Copy all the settings in your app/config/bootstrap.php file
or
-
Load the plugin bootstrap with the plugin
CakePlugin::load('Acl', array('bootstrap' => true));
-
Access the ACL plugin by navigating to /admin/acl
