RE: JON
Thanks for your reply.
I dont quite get it. I took a look on the code, but it isnt clear where to change. The warning code says: Aco: controllers/pages/display [CORE/cake/libs/controller/components/acl.php, line 273]
On the acos table I can find: Pages & controllers & display
It makes sense to me to normalize (lowercase maybe) all output from the table, but I have no clue where the queries are generated.
So, should I change by hand everything on the acos table to lowercase? Or change acl_menu code?
Thanks!
mehale on 6/14/11
RE: JON
Hi again, I just lowercased all alias column on my table, and I still get the error.
So, maybe I need to do it on the code side, but I still pretty much confused.
Thank you for your help!
mehale on 6/14/11
RE: mehale
You’ll want to modify acl_menu code. See my post in the page 2 of these comments (author Jonathan S), the formatting of the code was all screwed up but if you add the new lines manually you should be able to see the changes from the original code.
This all presumes your issue is the same one I had, but from the sounds of it should be.
Jon on 6/14/11
RE: JON
Hi Jon, I found something weird here.
On my ACO table, aliases are sometimes set with an S on their end (Pages/Users), and aliases for controllers which I created myself do not have appending S (Log, LogQueue).
Tried to change $name for model user.php and user_controller.php to “User” instead of “Users” and acl_extras and acl plugin still recreate the ACO as Users.
Thanks,
Mehale
mehale on 6/15/11
Ha, I finally got it. I was running out of the naming conventions. Now it seems to be all working.
Also I had to make a couple of changes to menu.php to accomodate properly on postgres (based on the previously posted patch):
near line 208: $aco = $item[‘url’][‘controller’];
near line 260: $ctrlCamel = Inflector::pluralize(Inflector::classify($ctrlName));
Thanks!
mehale on 6/15/11
Hi Mark,
Firstly, thanks for the component, it’s really useful! I have a question though:
The $excludedMethods variable, what is this used for? I’ve seen it is in the filterMethods function but cannot work out what it is used for.
Thanks again,
Alex
Alex on 9/19/11
I do not understand how to exclude whole controllers, the docs are incomplete I think: set exclude to ‘‘. Setting exclude to ‘‘ will remove an entire controller – does not appear to make sense.
Asbespip on 10/11/11
Hi,
I have followed all the steps and now I am stuck at how to show my menu. I am new to Cake. In my Layout I want to show menu. when I print_r($menu) I get an empty array.
Zeeshan Mehtab on 1/5/12
zorlerdebroro on 3/9/12
Hi,
Congratulation!! This looks like an excellent plugin.
I am very new to CakePHP So need your help on implementing the menu. Please guide how can I install and Show the menu.
Till now I have done the following.
1. Copied the files and folders to app/plugin/acl_menu
2. Added an entry in the bootstrap.php file – CakePlugin::load(‘AclMenu’);
3. Added an entry in the AppController – var $components = array(‘AclMenu.Menu’);
Let me know what else I have to do to get the ACL Menu
Note: I am using CakePHP2.1
Already setup acl as explained in the cakephp documentation(http://book.cakephp.org/2.0/en/tutorials-and-examples/simple-acl-controlled-application/simple-acl-controlled-application.html) and running fine.
Also installed the Alaxos ACL Plugin (http://www.alaxos.ch/blaxos/pages/view/plugin_acl_2.0)
Any help?
Saanch on 3/21/12
Hello,
I try to migrate a site to cakephp 2.1
So far I had managed to use your very nice and helpful component with cakephp 1.3, but I have now the following issue:
1. I copied the files and folders to app/Plugin/AclMenu
2. I renamed menu.php to MenuComponent.php
3. I Added an entry in the bootstrap.php file – CakePlugin::load(‘AclMenu’);
4. Added an entry in the AppController – var $components = array(‘AclMenu.Menu’); (Acl and Auth are also declared there and work fine)
I have the following warnings and errors:
Warning (2): Missing argument 2 for MenuComponent::initialize() [APP\Plugin\AclMenu\Controller\Component\MenuComponent.php, line 120]
Notice (8): Undefined property: MenuComponent::$Auth [APP\Plugin\AclMenu\Controller\Component\MenuComponent.php, line 142]
Fatal error: Call to a member function user() on a non-object in D:\Sites\test\Plugin\AclMenu\Controller\Component\MenuComponent.php on line 142
Any suggestion ?
Thanks a lot in advance for your help.
Best regards,
R.
Renaud on 4/5/12
Will this work off-the-shelf with CakePHP 2.x?
Carlos Pérez on 5/18/12
Indighisexede on 5/21/12
mark
can you please update this menu component for cakephp 2.0 and upper version.
appreciate if you reply me with update code of component.
Thanks
Hemendra on 7/18/12
mark
can you please update this menu component for cakephp 2.0 and upper version.
appreciate if you reply me with update code of component.
Thanks
Hemendra on 7/18/12
Hemendra:
If you take a look at github and the network of the repository, you will find out that Sams ported it to 2.0 almost 8 months ago:
https://github.com/sams/AclMenu
mark on 7/29/12
ï½›pletcherrï½ on 11/29/12
hey man i did not get it please. i had created acl as described in article “simple acl controlled application” @ cakephg.org how can i migrate ur componant
Janak Prajapati on 5/10/13
Article is all a bit too ambiguous really.
Andy Myers on 12/4/13
RE: mehale
Echo out the ACO (the function name), and compare it with what’s in the database tables. You might have to change the way the code normalises the function names (it does something like Camelcase and underscore, but in the database it’s something else)
Jon on 6/13/11