CodeIgniter Forums
Undefined property: CI_Jquery::$js - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Undefined property: CI_Jquery::$js (/showthread.php?tid=58023)



Undefined property: CI_Jquery::$js - El Forum - 05-07-2013

[eluser]Unknown[/eluser]
Hi
i wrote on my controller
Code:
public function index() {
  $this->load->library ( 'javascript' );
  $this->load->library ( 'javascript/Jquery' );
  $this->load->view ( 'welcome_message' );
  
}
then on my view i wrote
Code:
$this->jquery->toggle('toggleme');

it givesme error message says

Code:
A PHP Error was encountered

Severity: Notice

Message: Undefined property: CI_Jquery::$js

Filename: libraries/Javascript.php


any help?
thanks in advance.



Undefined property: CI_Jquery::$js - El Forum - 05-10-2013

[eluser]pickupman[/eluser]
What version are you using? In 2.1.x, jquery is loaded by default when loading the javascript class. You shouldn't have to load javascript/Jquery.