![]() |
Use CI functions within linked javascript file - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Use CI functions within linked javascript file (/showthread.php?tid=5082) |
Use CI functions within linked javascript file - El Forum - 01-04-2008 [eluser]Daniel H[/eluser] Hi I'm a newbie so please bear with me. I'm using CI and Spry. I'm extremely keen to use the CI db to xml util to generate datasets for use with Spry, but since I'm creating a dataset like this... Code: <!-- I obviously cannot use dbutil within ds_tags.php. Is there an easy way I can include this functionality within this file? Thanks! Use CI functions within linked javascript file - El Forum - 01-04-2008 [eluser]xwero[/eluser] why don't you link it to a controller instead of directly linking to a view file? If you have several calls you have to make to the database you can create a controller and a model just for spry. Code: class Spry extends Controller And then you just use the normal CI url structure to import the data you need. Use CI functions within linked javascript file - El Forum - 01-04-2008 [eluser]Daniel H[/eluser] That works absolutely perfectly!! Thank you so much for your help. |