![]() |
can i call a controller in view ? - 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: can i call a controller in view ? (/showthread.php?tid=12477) |
can i call a controller in view ? - El Forum - 10-20-2008 [eluser]minhbu[/eluser] hi ! i want to call a controller in view.Can it do it ? can i call a controller in view ? - El Forum - 10-20-2008 [eluser]GrootBaas[/eluser] Sure, try using AJAX ... Something like this ... Code: $.ajax({ can i call a controller in view ? - El Forum - 10-20-2008 [eluser]minhbu[/eluser] have any funtion same include function ? i want to do same include function. can i call a controller in view ? - El Forum - 10-20-2008 [eluser]GrootBaas[/eluser] [quote author="minhbu" date="1224578298"]have any funtion same include function ? i want to do same include function.[/quote] Not sure what you are asking ... but ... url: "<?=base_url()?>logs/get_regos", logs = The controller get_regos = function inside controller can i call a controller in view ? - El Forum - 10-21-2008 [eluser]narkaT[/eluser] what exactly do you want to archive? can i call a controller in view ? - El Forum - 10-21-2008 [eluser]Colin Williams[/eluser] Views almost always call other controllers, typically with hyperlinks, and sometimes with Ajax (just make sure there is a non-Ajax fallback). |