router connect configuration in cakephp 1.3
- by Gaurav Sharma
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)