Saturday, May 5, 2012

Authorize component ordering

I am trying to set the order for my Authorize components.
I have a App/Controller/Component/Auth/OrgAuthorize.php

I have tried starting with
in AppController
     public $components = array(
         'Auth' => array(
             'authorize' => array('Controller')
             )
     );

Then in my OrganizationContoller
     public $components = array(
         'Auth' => array(
             'authorize' => array('Org')
             )
     );

The problem is that it Orders the authorize to look like
array('Controller', 'Org')
But I would like the array to look like array('Org', 'Controller'), so
Org get called first.
I don't need Org in all the controllers.

how can I reorder the array?

Thanks,
Bill


View this message in context: Authorize component ordering
Sent from the CakePHP mailing list archive at Nabble.com.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate