Mastrepage in codeigniter

Hi in the custom php we will do the master page like this

if(isset($_GET[‘pid’]) && $_GET[‘pid’]==’‘)
echo “middle_content.php”
echo ($_GET[‘pid’].”.php”);

1) same thing how can we make the master page in codeigniter ?

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.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.