router connect configuration in cakephp 1.3
Posted
by Gaurav Sharma
on Stack Overflow
See other posts from Stack Overflow
or by Gaurav Sharma
Published on 2010-05-28T06:49:23Z
Indexed on
2010/05/28
6:51 UTC
Read the original article
Hit count: 387
Hello everyone,
I have defined the following rule in the router.php file of my cakephp 1.3 based application
Router::connect('/tags/*',array('plugin' => 'tags', 'controller' => 'Tags', 'action' => 'index', 'admin' => false));
I have used the tags plugin. When I display the tags related to a topic then the URL on the tags appears something like this
http://localhost/testapp/tags/Tags/view/{tag_key_name}
I want to make this url for any action to tags plugin like this
http://localhost/testapp/Tags/{action}/{tag_key_name}
for (view, admin_view and admin_edit)
and
http://localhost/testapp/Tags/{action}
for (index, admin_index and any other action that does not require an id or keyname for execution)
© Stack Overflow or respective owner