【发布时间】:2012-04-09 14:35:55
【问题描述】:
我在 app/plugins 中添加了 CakeDC-Users 插件。
现在http://example.com/,如果我点击主页/索引链接,它会错误地重定向到http://example.com/users/posts/index,但它应该是http://example.com/posts/index。
为什么总是在相应控制器之前添加插件“用户”?
如果我从 app/Plugin 中删除 CakeDC-Users 插件并从 bootstrap.php 中删除该行 CakePlugin::loadAll(); 然后我得到正常的链接/路由
routes.php:
Router::connect('/', array('controller' => 'posts', 'action' => 'index'));
如何通过 CakeDC-Users 插件解决这个问题
【问题讨论】:
标签: php cakephp routing routes cakephp-2.0