![]() |
Problem with including templates - 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: Problem with including templates (/showthread.php?tid=12663) |
Problem with including templates - El Forum - 10-27-2008 [eluser]AndyBrandy[/eluser] Hello, a have split views directory into few subdirectories, but, now i have problem with including header and footer, because they are in root of views directory. I try: Code: include_once('../header.php'); but it returns error: Code: File(../header.php) is not within the allowed path(s): Can somebody help me? Thx Problem with including templates - El Forum - 10-27-2008 [eluser]sl3dg3hamm3r[/eluser] why don't you use CI's native view-loader? you also can use it within a view (search for partial view). Sl3dg3 Problem with including templates - El Forum - 10-27-2008 [eluser]AndyBrandy[/eluser] Well, i don't know... But thank u, it works! ![]() |