Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
FuelPHP 1.4 'packages' => array( 'orm', ),
  • In fuelPHP 1.4 only works with  Package::load('orm'), in config file.
    with 'packages' => array( 'orm',), not works.
    check : http://fuelphp.com/docs/packages/orm/intro.html
  • That is weird, because all my applications define it like that.

    Have you defined the package path too (it's commented by default)?
  • Look at older fuel config files, you'll see that it you have to do it like this:
    'always_load'  => array(
     'packages' => array(
      'orm',
     ),
    ),


  • HarroHarro
    Accepted Answer
    I think the confusion is because by default the app/config/config.php file is now empty, all default values are in the core.

    I'll update the docs page.
  • oh.. ok, now is on core/config/config.php :)
    Thx
  • All default values are in the core, so that only the exceptions need to be added to the app config file.

    I didn't mean to say you should now modify a core file. You shouldn't, add your default override in the app file.

    The reason for this is that there is a significant speed improvement when all config values used are actually defined. Which wasn't the case when the config was in app, as experience showed that while most people upgrade the framework to a new version, they don't verify if files in app require upgrading as well.

Howdy, Stranger!

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

In this Discussion