asset.root.com > /public/assets/ asset.root.com/css/style.css === root.com/assets/css/style.cssWould I need to just modify fuel/core/classes/asset.php ?
Asset::forge('custom',array('paths'=>array('assets/'),'url'=>'http://assets.domain.com/'));If I leave the paths out, it can't find the file locally.
// create the remote and local instance Asset::forge('remote',array('paths'=>array(),'url'=>'http://assets.domain.com/')); Asset::forge('local',array('paths'=>array('assets/'),'url'=>'/')); // and use them echo Asset::instance('remote')->img('static/image.png'); echo Asset::instance('local')->js('dynamic/script.js');
Asset::forge('remote',array('url'=>'http://assets.domain.com/')); echo Asset::instance('remote')->css('bootstrap.css'); // Outputs: http://assets.domain.com/[b]assets/[/b]css/bootstrap.css?1326604172 // Expected: http://assets.domain.com/css/bootstrap.css?1326604172Or
Asset::forge('local',array('paths'=>array('assets/'),'url'=>'/')); echo Asset::instance('local')->css('bootstrap.css'); // Outputs: /assets/css/bootstrap.css?1326604172Or
Asset::forge('remote',array('paths'=>array(), 'url'=>'http://assets.domain.com/')); echo Asset::instance('remote')->css('bootstrap.css'); // Error: Could not find asset: bootstrap.css
It looks like you're new here. If you want to get involved, click one of these buttons!