hi there,

i am building blog platform where users can have blogs with cakephp. i
have Posts controller.

i have defined following route:

Router::connect(
                '/blog/:username/category/:categoryslug',
                array('controller' => 'posts', 'action' => 'category_view'),
                array(
                        'pass' => array('username', 'categoryslug'),
                        'username' => '[0-9a-zA-Z]+',
                        'categoryslug' => '[a-z0-9]+'
                )
        );

also inside category_view.ctp view file i have above at the begining:

$paginator->options( array('url' => $this->passedArgs ));

unfortunatelly my pagination links look like following:

http://www.sample.com/posts/category_view/ADMIn/php/page:2

instead of:

http://www.sample.com/blog/ADMIn/category/php/page:2

any ideas what could be wrong ????


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

Reply via email to