![]() |
Mastrepage in codeigniter - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Mastrepage in codeigniter (/showthread.php?tid=31332) |
Mastrepage in codeigniter - El Forum - 06-15-2010 [eluser]Unknown[/eluser] Hi in the custom php we will do the master page like this <?php include(“header.php”); if(isset($_GET[‘pid’]) && $_GET[‘pid’]==’‘) { echo “middle_content.php” } else { echo ($_GET[‘pid’].”.php”); } include(“footer.php”); ?> 1) same thing how can we make the master page in codeigniter ? Mastrepage in codeigniter - El Forum - 06-15-2010 [eluser]n0xie[/eluser] 1. This piece of code is a huge security risk and shouldn't be used in production, ever. 2. This question has been answered about a million times. In fact, there is a whole wiki entry dedicated to it. Please use the search function before opening new threads. |