$this->load->view('about', $data);
$this->template->load('template', 'about', $data);
<html> <body> <div id="contents"><?= $contents ?></div> <div id="footer">Copyright 2008</div> </body> </html>
<h1>About</h1> <p>I'm so human!</p>
$this->template->load('template', 'about');
var $template_data = array();
function set($name, $value)
{
$this->template_data[$name] = $value;
}
function load($template = '', $view = '' , $view_data = array(), $return = FALSE)
{
$this->CI =& get_instance();
$this->set('contents', $this->CI->load->view($view, $view_data, TRUE));
return $this->CI->load->view($template, $this->template_data, $return);
}
<head> <title><?= $title ?></title> </head>
$this->template->set('title', 'About me');
$this->set('nav_list', array('Home', 'Photos', 'About', 'Contact'));
<ul class="navigation"> <?php foreach($nav_list as $i => $nav_item): ?> <li class="<?= ($nav == $nav_item ? 'selected' : '')?>"> <?= anchor($nav_item, $nav_item) ?> </li> <?php endforeach ?> </ul>
$autoload['helper'] = array('url');
$this->template->set('nav', 'About');
function load_main($view = '', $view_data = array(), $return = FALSE)
{
$this->set('nav_list', array('Home', 'Photos', 'About', 'Contact'));
$this->load('template', $view, $view_data, $return);
}
$this->template->set('nav', 'About');
$this->template->set('title', 'About me');
$this->template->load_main('about');
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有