Question one: Can I overwrite the controller and action with my slugged_url value?
To have something like http://domain.com/my_slugged_url/page:2 ?
Yes, in your router put something like:
Router::connect('/:slug/*', array('admin'=>false,'controller' => 'posts', 'action' => 'index'),array('pass'=>array('slug','page'),'page' =>'[0-9]+'));
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment