canton7 / fuelphp-casset

Better asset management library for fuelphp (with minification!)
MIT License
103 stars 29 forks source link

Setting paths in global config doesn't work #2

Closed rob-mccann closed 13 years ago

rob-mccann commented 13 years ago

Hey,

I might be being a complete idiot but I've set the following in fuel/config/config.php

'casset' => array(
            'paths' => array(
                 'core' => 'assets/',
                 'admin' => 'assets/admin/'
            )
        )

but i get "Could not find namespace admin" when I try to use it. Any ideas what I'm doing wrong? Does it have to be in fuel/packages/casset/config/casset.php ?

Kindest regards, Rob

canton7 commented 13 years ago

Casset uses Fuel's Config class, which handles all of the config file overwriting, etc.

By the looks of it, the easiest thing to do is to stick your config in fuel/config/casset.php -- it doesn't appear there's a way to tell Fuel to look in a file of another name:

All config files (db.php, routes.php, etc.) are loaded into groups of the same name, with the exception of the main config.php file.

Let me know if this solves your problem! Antony

rob-mccann commented 13 years ago

Putting the config in a new file in fuel/config/casset.php worked

makes sense really :P