1) - 控制器代码
class Welcome extends CI_Controller {
public function index()
{
$dataView['content'] = $this->load->view('crud_view','', TRUE);
//$dataView['content'] = 'crud_view';
$this->load->view('masterpageTeste',$dataView);
}
}
2) - MasterPage上我想要包含视图内容的部分
<section class="content">
<div class="row">
<div class="col-md-12">
<?php
//$this->load->view($content);
echo $content;
?>
</div>
</div>
</section>
面临的问题是视图具有数据表代码