websta i try this before but get the same problem, and of course thank you
for that tip

and RoVo thank you t give me the appropriate knowledge about the use of
prefix and now i face a new problem is how to make a custom routing to two
dir one for admin and other for the super admin like i enplane above

On Thu, Jan 22, 2009 at 11:43 AM, RoVo <[email protected]> wrote:

>
> Hi medo,
>
> Please read this article in the bakery:
>
> http://bakery.cakephp.org/articles/view/using-cake_admin-for-multiple-user-types
> May be, that helps you...
>
> Like websta said, the right way is, to use of 'prefix':
> 'prefix'=>'admin'
>
> But use it in both routings, like this:
> Router::connect( '/admin/:controller/:action/*', array
> ('prefix'=>'admin'));
> Router::connect('/superadmin/:controller/:action/*', array
> ('prefix'=>'admin'));
>
> The 'prefix'=>'admin' tells cake to use the defined admin-routing:
> Configure::write('Routing.admin', 'yourprefix')
>
> I solved this long time ago. Please tell, if it works.
> If not, I will look for more details in my projects to help you...
>
> RoVo
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to