CodeIgniter and Javascript/Jquery Library
As title said, I'm trying to figure out how to use javascript and jquery libraries on CI. Following instruction in the docs , I load the library in my controller: $this->load->library('javascript'); Then, I define the location of the jQuery file (jquery.min.js) in the config.php: $config['javascript_location'] = 'http://localhost/ci/assets/js/jquery/'); After that, I open the view file and put in these two lines: <?php echo $library_src;?> <?php echo $script_head;?> First error comes up here: Undefined variable $library_src and $script_head (don't understand where I have to set them) Anyway, I