[eluser]Patrick Maciel | @p4designer[/eluser]
Hello everbody, whats up? (if you not understand my english, sorry... I'm brazilian but I will try be clear/direct)
So...
I Know the 'Javascript Class' is not complete/stable, BUT, I want use.
I try this (in Controller):
Code:
$this->load->library('javascript', array('js_library_driver' => 'jquery', 'autoload' => TRUE));
And this, in view:
Code:
<!-- CodeIgniter - Javascript Library Class -->
<?php echo $library_src;?>
<?php echo $script_head;?>
Recieving the following error:
Code:
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: library_src
Filename: default/header.php
Line Number: 30
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: script_head
Filename: default/header.php
Line Number: 31
What happend?
I know, CodeIgniter has not found these 2variables, but ... ok ... I do so that they load ... I need instantiate them in the controller, or ... ?
Help please.
Obs.: You recommend I use Javascript Class, or jquery 'pure'?