2009-07-24 48 views
0

我遇到了麻烦登山工作...登山不工作 - 笨库

有没有任何错误 - 我的文件只是不工作。

我还没有改变配置。

在我的功能,我有:

$this->load->library('carabiner'); 
    $this->carabiner->display(); 

这应该输出都在我的asstes文件夹中的CSS和JS,对不对?

我试着移动资产文件夹。现在它在/应用程序/资产

我错了吗?!

回答

0

看起来你还需要使用铁锁对象抢js和css:

// add a js file 
$this->carabiner->js('scripts.js'); 

// add a css file 
$this->carabiner->css('reset.css'); 

// add a css file with a mediatype 
$this->carabiner->css('admin/print.css','print'); 

看到http://codeigniter.com/wiki/Carabiner/

0
$this->load->library('carabiner'); 
$this->carabiner->css('file1.css');// load as many css file as you want. 
$this->carabiner->css('file2.css');// load as many css file as you want. 
$this->carabiner->js('file1.js');// load as many js file as you want. 
$this->carabiner->js('file2.js');// load as many cjs file as you want. 
$this->carabiner->display(); // output html which loads cached files 

请参阅本网站的地方一步的指导给了步实施它。 Carabiner integration with codeigniter

+0

这个问题真的很老了,已经回答了。你的答案是否增加了有用的东西 – 2017-08-02 12:08:20