2013-07-24 94 views
3

測試路線在Kohana中您可以測試這樣如何Symfony2的

$route = Route::get('admin'); 
echo Kohana_Debug::dump($route->matches('admin/user/edit/10')); 

路線,我怎麼能在Symfony2的測試路線。

回答

7

您是否嘗試過控制檯命令?查看文檔頁面documentation page

php app/console router:debug 
php app/console router:debug article_show 
php app/console router:match /blog/my-latest-post