06-15-2010, 03:51 AM
[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 ?
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 ?