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

Folder Structure

Hello,

I am working on my own folder structure for my project. I would like to hear if you think this is a bad ideer and why? The reason I do this, is because I have 3 different templates.

  1. Frontpage template
  2. User logged in dashboard template
  3. Admin dashboard template

My folder structure looks like this:

App/
    frontpage/
        controllers/
        views/
    admin/ ( User dashboard )
        controllers/
        views/
    system/ ( Admin dashboard )
        controllers/
        views/
public/
resources/
    config/
    library/
    models/
cache/

Is this a bad ideer, any suggestions ?

Hi. Try to use this architecture. Then you will not have problems with phalcon devtools.