ok
Direktori : /home2/selectio/public_html/gangabuvana/admin/cms/application/controllers/ |
Current File : /home2/selectio/public_html/gangabuvana/admin/cms/application/controllers/Page.php |
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Page extends MY_Controller { function __construct() { parent::__construct(); $this->load->model('Model_common'); $this->load->model('Model_portfolio'); $this->load->model('Model_page'); } public function index($slug) { $data['setting'] = $this->Model_common->all_setting(); $data['page_about'] = $this->Model_common->all_page_about(); $data['comment'] = $this->Model_common->all_comment(); $data['social'] = $this->Model_common->all_social(); $data['all_news'] = $this->Model_common->all_news(); $data['portfolio_footer'] = $this->Model_portfolio->get_portfolio_data(); $data['page_dynamic_detail'] = $this->Model_page->dynamic_page_by_slug($slug); $this->load->view('view_header',$data); $this->load->view('view_page_dynamic',$data); $this->load->view('view_footer',$data); } }