Not work... :(

This route:

Router::connect('/' . strtolower($controllerName) . '/:action/
*',array('controller' => strtolower($controllerName)));

it's compatible with CakePHP 1.3?

Thanks,
Gianluca


On 8 Apr, 06:13, mark_story <[email protected]> wrote:
> Well it might have something to do with the Configure->listObjects()
> part.  First calling static methods in a non-static way is not so
> hot.  Also those features were moved into App, as discussed in the
> migration guide.
>
> You might want to try App::objects('controller'); instead.
>
> -Mark
>
> On Apr 7, 4:30 pm, Gianluca Gentile <[email protected]>
> wrote:
>
> > Hi all,
> >  my routes.php in CakePHP 1.2:
>
> > $Configure = &Configure::getInstance();
> > $controllerList = $Configure->listObjects('controller');
> > foreach($controllerList as $controllerName) {
> >         if ($controllerName != "App" && $controllerName != "Pages" &&
> > $controllerName != "Shop") {
> >                 Router::connect('/' . strtolower($controllerName) . 
> > '/:action/*',
> > array('controller' => strtolower($controllerName)));
> >         }}
>
> > Router::connect('/*', array('controller' => 'shop', 'action' =>
> > 'category'));
>
> > But not work in CakePHP 1.3!
> > Thanks for all! ;)

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to