I am trying append_css to use the following code. In older projects, normal code usually works. For reference, I am using CodeIgniter and the Sparks template.
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'); } }
I get the following error
Fatal error: Call to undefined method Template::append_css() in /Users/Afont/quals/codeigniter-test/application/controllers/welcome.php on line 9
source share