php - CakePHP - How to change default plugin router config -
i new in cakephp. have added plugin in cake app, , name "admin". it's working fine, when use "localhost/admin/..." access it. question is, want hide /admin users, instance, want use "localhost/console/..." replace default route config. googled lot, never got answer. how change default route config of plugin in cakephp?
thanks.
if want applicable plugin controllers/actions, need little more verbose. try:
router::connect('/console/:controller/:action/*', array('plugin'=>'admin'));
but if that's want, you're better off renaming "admin" plugin "console". re-routing plugin controllers , actions make debugging not fun. :)
Comments
Post a Comment