以下のコードを使用して append_css を試みています。古いプロジェクトでは、以下のコードは通常機能します。参考までに、私は CodeIgniter とテンプレート Sparks を使用しています
public function __construct() {
parent::__construct();
$this->load->library('template');
$this->template
->append_css('/public/css/app.css');
}
public function index(){
$this->template->build('welcome_message.php');
}
}
次のエラーが表示されます
Fatal error: Call to undefined method Template::append_css() in /Users/Afont/quals/codeigniter-test/application/controllers/welcome.php on line 9