I just stumbled at Phalcon (PHP framework) and it looked so promising I decided to try it.
I searched in the docs but haven't found anything related to routes in Phalcon. Does somebody know how to create custom routes in this framework or am I supposed to always follow conventions?
If you don't know Phalcon yet you might want to look at these slides to see what it's about.
They replied to the request and have just implemented the custom routes, it doesn't look that good right now but here is the reference:
$router->add("/admin/:controller/a/:action/:params", array(
"controller" => 1,
"action" => 2,
"params" => 3,
));
Links:
I'm pretty sure you'll have to stick with the baseDir/class/method/argument/...
convention.
I read the documentation and the source code, and I don't see any hint that would allow you to handle custom routes relying only on the C extension. One possible solution would be to map them in .htaccess.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With