hey,
working on a shoping cart. looking to get the following url structure
/category/subcategory/product
say:
/hardware/cpus/Intel-Q6600
added following to the routes
Router::connect('/:cat/*', array('controller' => 'categories',
'action' => 'view'),
array('pass' => array('cat'))
);
Router::connect('/:cat/:subcat/*', array('controller' => 'categories',
'action' => 'view'),
array('pass' => array('cat', 'subcat'))
);
so far so good. i check $this->params in my view function and display
the needed info
trying to get pagination working
say
/hardware/page:2
/hardware/cpus/page:2
as of now when going to /hardware/ the pagination link looks like
http://127.0.0.1/categories/view/page:2
when going to /hardware/cpus it looks like
http://127.0.0.1/categories/view/procesoare/page:2
how do i get it like http://127.0.0.1/hardware/page:2
http://127.0.0.1/hardware/cpus/page:2 ?
thanks,
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---