/** * Display home index page * * @access public * @author Nguyen Van Hiep * * @version 1.0 * @since 1.0 */ public function action_index() { $view = View::forge('customer/home/home'); $view->cats = Model_Categories::get_cats_home($this->lang); $view->pepper_arts = Model_Article::pepper_artilces($this->lang); // prepare images $this->template->background = Model_Img::get_img(IMG_MAIN_BG); $this->template->main_logo = Model_Img::get_img(IMG_LOGO); $this->template->circle_logo = Model_Img::get_img(IMG_OLOGO); $view->gallery = Model_Img::get_img(IMG_GALLERY); $view->cat_id = Input::post('cat_id') ? Input::post('cat_id') : null; $this->template->title = __('common.home'); $this->template->error = array(); $this->template->contact_data = array('mail_yourname' => '', 'mail_address' => '', 'mail_message' => ''); $this->template->content = $view; }
/** * display access denied page * * @access public * @author Dao Anh Minh */ public function action_error() { $view = View::forge('common/error'); $this->template->background = Model_Img::get_img(IMG_MAIN_BG); $this->template->main_logo = Model_Img::get_img(IMG_LOGO); $this->template->circle_logo = Model_Img::get_img(IMG_OLOGO); $this->template->title = __('title.page_403'); $this->template->content = $view; }