CodeIgniter Forums
Correctly locating asset file with asset library - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Correctly locating asset file with asset library (/showthread.php?tid=58142)



Correctly locating asset file with asset library - El Forum - 05-20-2013

[eluser]xtremer360[/eluser]
I'm using the asset library that comes with pyrocms for my cms and I have a set up like this for my assets. I am trying to figure out with the paths and namespacing how I can access the bootstrap.css file correctly with the documentation.

http://docs.pyrocms.com/2.1/manual/developers/tools/assets

I have updated my asset.php configuration file to look like this:

Code:
$config['asset_paths'] = array(
    'core' => 'assets/',
    'globals' => 'assets/globals/'
);

This is the line I have set up in my template page to try and retrieve the bootstrap file:

Code:
<?php
Asset::css('globals::bootstrap/css/bootstrap.min.css');
?>

This is my file directory:

Code:
/root
    /assets
        /globals
            /bootstrap
                /css
                    bootstrap.css

It is saying the following error message.

Code:
Found no files matching assets/globals/css/bootstrap/css/bootstrap.min.css

Any ideas on what I good fix would be for this?