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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -