i have one prefix , this is 'admin',
i want to have dynamic prefix,
for this read prefix from config file and set it in $prefix
i use this codes in routes.php
Router::connect("/{$prefix}/:plugin/:controller", array('action' => 'index', 'prefix' => 'admin', 'admin' => true)); Router::connect("/{$prefix}/:plugin/:controller/:action/*", array('prefix' => 'admin', 'admin' => true)); Router::connect("/{$prefix}/:controller", array('action' => 'index', 'prefix' => 'admin', 'admin' => true)); Router::connect("/{$prefix}/:controller/:action/*", array('prefix' => 'admin' , 'admin' => true));
but for example, when using usermgmt plugin , cakephp send error the UsermgmtController not found !
the Router class cann't parse :plugin. :)
Can help me ? --
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
No comments:
Post a Comment