On Nov 9, 9:46 am, phpjoy <[EMAIL PROTECTED]> wrote:
> Hey,
>
> I upgraded from CakePHP 1.2alpha to 1.2pre-beta 1.
>
> My admin routing stopped working:
> My old routing is: (in routes.php)
> Router::connect('/admin/', array('controller' => 'backend_home',
> 'action'=> 'home', 'admin'=>1));
>
> core.php:
> Configure::write('Routing.admin', 'admin');
>
> inside the controller:
>         function admin_home() {
>                 $this->set('title', 'Main');
>         }
>

see the release announcements and/or the router testcase. you need to
add 'prefix' => 'admin'

hth,

AD


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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