Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Folder structure
  • Hi all, I'm new to FuelPHP and just want to ensure that I have the correct folder structure during development. I also plan to use this structure when the application is deployed to production and I will likely be creating multiple applications.
    /
       /fuel
            /core
            /packages
    
       /public_html
            /AppName1
                /app
                /assets
                /index.php
    
            /AppName2
                /app
                /assets
                index.php
    
    Is this structure correct and secure? Thanks all.
  • No, ideally you should not have any code inside the DOCROOT, so I suggest you move the application as well. Perhaps to something like:
    /
        /fuel
            /core
            /packages
        /app
            /AppName1
            /AppName2
        /public_html
            /AppName1
                /assets
                /index.php
            /AppName2
                /assets
                index.php
    

    But even better is to avoid multiple apps in the same DOCROOT, and create a separate virtual host for each of them. If you want to do it this way, be prepared to put some work into creating a rewrite solution that works properly for both apps.
  • Thank you very much, that is a huge help. Much appreciated.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion