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

problem in url parameters on phalcon 3.0

hi... I set title of article in url after article id for example ==> localhost/web/12/Web-design-and-development... all thing ok, but when i write other language article like arabic or persian and title contain م character. the index/index is shown!!! this problem is apear in phalcon 3 on php 5.6 and php 7.. i test it on vokour and invo project (in localhost) and have a same problem.... who can fix it?!!



1.9k

Show us routes



2.6k

$router = new Phalcon\Mvc\Router();

$router->add('/:action/:params', array( 'controller' => 'index', 'action' => 1, 'params' => 2 ));

$router->removeExtraSlashes(true); return $router;



1.9k

I don't see language part in route. How do you pass language to the controller?

Did you escaped article titles with function encodeurl ?



2.6k

yes i use urlencode...