[英]How to test route in symfony2
在Kohana您可以测试这样的路线
$route = Route::get('admin');
echo Kohana_Debug::dump($route->matches('admin/user/edit/10'));
以及如何在symfony2中测试路由。
你试过控制台命令吗? 请查看文档页面文档页面
php app/console router:debug
php app/console router:debug article_show
php app/console router:match /blog/my-latest-post
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.