Include external php file in controller action - 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: Include external php file in controller action (/showthread.php?tid=20660) |
Include external php file in controller action - El Forum - 07-17-2009 [eluser]zombica[/eluser] Hi , Is there any way that i can include an external file place at root from controller action. Here is my code Code: function error_template($msg_id){ What i am lacking over here CI throws me this error. Code: A PHP Error was encountered Thanks in advance. Regards, Zombica Include external php file in controller action - El Forum - 07-17-2009 [eluser]Phil Sturgeon[/eluser] Your error told you the problem here. You cannot include via a URL. Instead of bath_url() use BASEPATH. |