public function index($page = 1) { // Getting data $website = WebsiteManagement::get_website(); $blog = BlogManagement::get_blog($page); $menu = PageManagement::get_pages(); PageManagement::add_visit(4); $this->load->view('front/header', array('website' => $website)); $this->load->view('front/menu', array('menu' => $menu)); $this->load->view('front/blog_posts', array('blog' => $blog)); $this->load->view('front/footer', array('website' => $website)); }
public function page($page = '') { $this->load->view('back/header'); $this->load->view('back/navigation_bar'); switch ($page) { case 'accueil': $this->load->helper('form'); //$this->load->model('management/slidermanagement'); $slider_images = SliderManagement::get_slider(); $this->load->view('back/slider_settings', array('slider' => $slider_images)); break; case 'qui_sommes_nous': $this->load->helper('form'); //$this->load->model('management/slidermanagement'); $slider_images = SliderManagement::get_slider(); $this->load->view('back/Who_we_are_settings', array('slider' => $slider_images)); break; case 'portfolio': $AllPosts = PortfolioManagement::get_portfolio(); $this->load->view('back/portfolio_settings', array('AllPosts' => $AllPosts)); break; case 'blog': $AllPosts = BlogManagement::get_blog(); $this->load->view('back/page_blog', array('AllPosts' => $AllPosts)); break; case 'blog_edit': $post = BlogManagement::get_post($this->input->get('id')); $this->load->view('back/page_blog_edit', array('post' => $post)); break; case 'contact': echo 'Vous etes sur lq pages : contact'; break; case 'portfolio_ajouter': $this->load->view('back/page_portfolio_ajout'); break; case 'blog_ajouter': $this->load->view('back/page_blog_ajout'); break; default: echo 'well fak you'; break; } $this->load->view('back/menu'); $this->load->view('back/footer'); }