我想像这样格式化我的网址:
/news/index/page:2
to
/news/2
我希望通过使用尽可能少的代码(也许仅来自routes.php?)来实现此结果,而不修改 PaginatorHelper 的行为方式。
感谢您的帮助!
这应该有效
// Add this to /app/config/routes.php
Router::connect('/news/:page', array('controller' => 'news', 'action' => 'index'));
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)