2009-07-24 9 views
0

Carabinerが動作するのに問題があります...Carabinerが動作しない - Codeigniterライブラリ

私のファイルは機能していません。

私は設定を変更していません。私の機能で

私が持っている:

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

これは私のasstesフォルダ内の出力は、すべてのCSSやJS、右すべきか?

アセットフォルダも移動してみました。今すぐ/ application/assetsにあります

何か間違っていますか?あなたはまた、カラビナオブジェクトを使用して、JSとCSSをつかむ必要があるよう

答えて

0

はルックス:

// 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

この質問は本当に古く、既に回答済みです。あなたの答えは役に立つ何かを加えますか? –

関連する問題