php - Correctly locating asset file with asset library -


i'm using asset library comes pyrocms cms , have set assets. trying figure out paths , namespacing how can access bootstrap.css file correctly documentation.

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

i have updated asset.php configuration file this:

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

this line have set in template page try , retrieve bootstrap file:

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

this file directory:

/root     /assets         /globals             /bootstrap                 /css                     bootstrap.css 

it saying following error message.

found no files matching assets/globals/css/bootstrap/css/bootstrap.min.css

any ideas on fix this?

i've never used library in question, judging on post appears library automatically checks css folder within designated asset_path.

i create new asset path called bootstrap:

'bootstrap' => 'assets/globals/bootstrap/'

and add css file such:

asset::css('bootstrap::bootstrap.min.css');


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -