A view is a webpage that displays all the elements of the UI. In many cases, the view is often a fragment of the page (such as header, footer, widget areas, and sidebars). In many cases, views can be embedded in other views. One important aspect of views is that views could not be called directly
Controller
public function inner_page()
{
$data['title'] = display('Inner Page');
$data['inner_page']=$this->db->select("*")->from("setting")->get()->row()->inner_page;
$data['content'] = $this->load->view('customer/pages/inner_page', $data, true);
$this->load->view('customer/layout/main_wrapper', $data);
}(code-box)
- setting - table name
- .inner_page - colum name
- public function inner_page() page name inner_page
View Page
<div class="container-fluid"><?php echo $inner_page ?></div>(code-box)