Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Routing problem, indexAction runs everytime even in invalid routes

Hello, I'm new to phalconphp and I'm having problems with setting up new pages. I created modules project using the devtools, added helloAction to the IndexController in frontend module but when I go to /frontend/index/hello it shows me the indexAction. I've tried creating static routes without any dynamic params but that didn't work too.



159
Accepted
answer

Well, I was trying to run server via php -S 127.0.0.1:8080 public/index.php command but found out that way mod_rewrite will not work. Then I found out that skeleton project already has a script to run server .htrouter.php. It works now.



2.9k
edited Apr '17

Phalcon does have logic to make a command line application by the way - https://docs.phalconphp.com/en/3.0.1/reference/cli.html