[eluser]pickupman[/eluser]
I use a similar method as well. I use different plugins for certain pages, so I use in my controller
Code:
$data['js'] = array('jquery/jquery_live','jquery/jquery_cycle');
$this->load->view('page',$data);
I have a jquery subfolder under views, and have /application/views/jquery
Code:
//jquery_live.php
<scrpt type="text/javascript" src="<?=base_url();?>js/jquery.live.packed.js"></scrpt>
Then I use in the main view
Code:
<html>
<head>
<?php
if(isset($js))
{
foreach($js as $j)
{
$this->load->view($j);
}
}
I do this because I'll use the jquery UI for a page needing drag-n-drop, animation easing.