Routing the type of personal pages

For example: url.domen/phalconphp

There is a "phalconphp" parameter.

It is necessary to activate the "profile controller" and method "show", with parameter "phalconphp". How to make this routing?



7.9k

already found the solution

$router->add('/{name}', array( 'controller' => 'controller', 'action' => 'test', ) );