CakePHP - Route configuration

Posted by aboxy on Stack Overflow See other posts from Stack Overflow or by aboxy
Published on 2010-04-29T17:03:22Z Indexed on 2010/04/29 17:07 UTC
Read the original article Hit count: 407

Filed under:
|
|

Hello

I am working on cakephp and totally a newbie to php/cakephp. Can you please tell me what is wrong with my route configuration here?

Router::connect( '/news/:q/:page',array('controller' => 'news', 'action' => 'onDemand','mode'=>'news','page'=>1),array('pass'=>array('q','mode','page'), 'page' => '[\d]+','q'=>'.*'));

When i access the page as /news/123 or /news/123/1, it tries to find for action '123' in news controller.

Appreciate any help. thanks

© Stack Overflow or respective owner

Related posts about cakephp

Related posts about php