Monday, February 6, 2012

Remove plugin and controller name from URL

In cakephp if you want to remove plugin and as well as controller name from URL , just add below line on your's routes.php file.


Router::connect(
'/plugin-name/*',
array(
'plugin' => 'plugin-name',
'controller' => 'controller-name',
'action' => 'view'
)
);

No comments:

Post a Comment