Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Installation & Setup
Newbie Question Ubuntu 12.04
I'm new to FuelPHP and this forum so I apologise if I have missed an answer to this, I looked but couldn't find it.
I'm running ubuntu 12.04 and already have lamp installed.
I downloaded the latest FuelPHP (1.4) and was working through the crash course tutorial. Everything seems to set up fine until I get to "prettying the code": when I try to access the page
I get an error message: ErrorException [ Error ]: Class 'Orm\Model' not found
I do not want to change my current dev sites unless I know exactly what it is I'm changing but I'm guessing that my lamp installation is missing something from the required xamp installation.
Can anyone point me in the direction of what I need to install?
You should check
If you does not found
, you can copy from
the tutorial is not clear on this and the config.php in app/config returns an empty array.
I had changed it to
'packages' => array(
which was obviously wrong.
copying the config from core/config and changing the settings in the 'always_load' array solves the problem.
Must be a tutorial written for an earlier version of FuelPHP. Always pay attention to the version, as things may change over time.
In this case, for v1.4 we have decided to move all config defaults into the core. If will save us from providing defaults in the core whenever we get a config value. Also, the Config class is a lot faster if all requested values actually exists.
Also, if the tutorial told you to use that array structure, it's wrong (or at least incomplete). 'packages' have always been inside the 'always_load' array.
Add a Comment
It looks like you're new here. If you want to get involved, click one of these buttons!
Apply for Membership
↳ Job Board
↳ Installation & Setup
↳ Tips and Tutorials
↳ Code share
In this Discussion