We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

some times Routers doesn't work

Hi, I have a Big site and i Written by Phalcon, And Everythink is okey. but for example when i navigate to some page (example: single post), dosen't show single post and Instead show Home Page .... Why ? my Router for Single Page is :

$router->add("/v/{key:[a-zA-Z0-9_-]+}/:params", "V::index");

My Website: https://vitreen.net/

and Single Post: https://vitreen.net/v/k8zzKG4-ii/%D9%81%D8%B1%D9%88%D8%B4%20%D9%88%DB%8C%DA%98%D9%87%20%D9%84%D9%BE%20%D8%AA%D8%A7%D9%BE%20%D8%A7%DB%8C%D8%B3%D9%88%D8%B3%20k555

Sorry For Bad Type English.



7.0k

Any Answer ? Pleas Help me

It means the route is not being matched, you have to post the full code of how are you initializing the router.



7.0k

The Matches works because after refresh the page it works fine. im using phalcon version 1.3.5 and PHP Version 5.3.29

any idea ?