I can't come up with a solution to the following problem. Let's say i have a library (.php) file that I put inside codeigniter's library folder but that library has some javascript associated with it: I have the library "grid.php" and it has "grid.js" that comes with it. And when I load the library "grid" the
<script src="base_url(). 'application/libraries/grid/grid.js'></script>
is echoed in the page where I have used the grid. The problem is that the ".js" file gets forbidden access and therefore cannot be used. I dont want to put my grid in the root level of codeigniter because I won't be able to load it with $this->load->library('grid') and I dont want move my js files manually to the root and then include them manually every time I use the grid I just want to copy and paste the grid folder to every project I need and when I use it it would include the js link automatically. Help me please :)
I saw the "Deny all" .htaccess file that resides in application and system folders but i don't want to remove that either (if it's causing the problem) :D