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

Beginner with Phalcon

Hello! At first, sorry for my english, i'm a french student developper, for my final project i have to create a web api, i choose PHP with phalcon, for begin I installed phalcon on my web server (Debian), that is good, my project it's like :

api/ app/ cache/ config/ controllers/ logs/ migrations/ models/ views/ public/ css/ files/ img/ js/ temp/ index.php index.html

that is default project, and my question is where put my route (get/post/set/delete), in which file Thank you, and sorry for my english



85.5k

Hi man,

did you check this repo here https://github.com/phalcon/mvc ?



378

Hi and thank you, if i understand, i need put my route in the file api/public/index.php ?



145.0k
Accepted
answer

Phalcon doesn't imposing developer where he puts anything, you can put it anywhere you want, load this file when building DI Container and set router.



378

ok thank you