Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Can I separate app from core and packages?
  • Hi, I'm a long time CodeIgniter user, and I just downloaded Fuel. With CI I was able to separate the system folder from the application folder. This allows me to use one system folder for all my clients and have separate application folders for each client. Is there an easy way to configure Fuel to do this? Thanks,
    Mitchell
  • Jelmer Schreuder wrote on Tuesday 3rd of May 2011:
    Comming from CI I'd expect you to find this as it works exactly the same ;) https://github.com/fuel/fuel/blob/master/public/index.php#L11

    Dead link.
  • Comming from CI I'd expect you to find this as it works exactly the same ;) https://github.com/fuel/fuel/blob/master/public/index.php#L11
  • You're absolutely right. A little tweaking of the index.php, and it's working.
  • I believe I'm having some trouble with my htaccess file. I have the basic welcome screen working and tried to set up my own first simple page which works if I go to http://mydomain.com/index.php/about, however I get "Object Not Found" if I try to access http://mydomain.com/about. BTW, I apologize for the lack of formatting below, but the format buttons don't seem to be working File structure is:
    core and packages a few levels above directory root so they can be used for multiple projects +app
    -cache
    - classes
    - etc.
    +public_html
    - assets
    - .htaccess
    - index.php In config.php, I've set 'index_file' => false htaccess file:
    <IfModule mod_rewrite.c>
    RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L]
    </IfModule> In htaccess, I've also tried what I have in my CodeIgniter htaccess:
    RewriteRule ^(.*)$ /index.php/$1 [L] (note extra slash before index)
    and also:
    RewriteRule ^(.*)$ index.php?/$1 [L] (note ? after php)
    Any help would be greatly appreciated. Mitchell
  • I solved it. Fuel uses "public" as the main web directory, however my hosting company uses "public_html."

Howdy, Stranger!

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

In this Discussion