Esempio n. 1
0
 public function after($response)
 {
     if (empty($response) or !$response instanceof Response) {
         $response = \Response::forge(\Theme::instance()->render());
     }
     return parent::after($response);
 }
Esempio n. 2
0
 /**
  * before
  *
  * @access public
  * @author Nguyen Van Hiep
  *
  * @version 1.0
  * @since 1.0
  */
 public function before()
 {
     parent::before();
     $this->lang = Session::get('active_lang');
     $this->template = \View::forge('customer/template_detail');
     $this->template->cats = Model_Categories::get_cats_home($this->lang);
     $this->template->pepper_arts = Model_Article::pepper_artilces($this->lang);
 }
Esempio n. 3
0
 public function before()
 {
     parent::before();
     $installation_status = Kohana::$config->load('app.installation_status');
     if ($installation_status != INSTALLED) {
         $this->redirect('/install');
     }
 }
Esempio n. 4
0
 public function before()
 {
     parent::before();
     $this->_search = $this->request->post('search');
     $this->_ids = $this->request->post('ids');
     if (!empty($this->_ids)) {
         $this->_ids = explode(',', $this->_ids);
     }
     $this->_user = Auth::instance()->get_user();
 }
Esempio n. 5
0
 public function before()
 {
     parent::before();
     $this->theme->active('system');
     $this->theme->set_template('index');
 }
Esempio n. 6
0
 public function before()
 {
     parent::before();
     $this->title[] = 'Отчеты';
 }
Esempio n. 7
0
 public function before()
 {
     parent::before();
     $this->title[] = 'Сообщения';
 }
Esempio n. 8
0
 public function before()
 {
     parent::before();
     $this->title[] = 'Клиент';
 }
Esempio n. 9
0
 public function before()
 {
     parent::before();
     $this->title[] = 'Новости';
 }
Esempio n. 10
0
 public function before()
 {
     parent::before();
     $this->title[] = 'Управление';
 }
Esempio n. 11
0
 /**
  * before
  *
  * @access public
  * @author Dao Anh Minh
  *
  * @version 1.0
  * @since 1.0
  */
 public function before()
 {
     parent::before();
     $this->lang = Session::get('active_lang');
     $this->template = \View::forge('customer/template_detail');
 }
Esempio n. 12
0
 public function before()
 {
     parent::before();
     $this->no_layout();
     $this->no_view();
 }
Esempio n. 13
0
 public function before()
 {
     parent::before();
     $this->title[] = 'Поддержка';
 }
Esempio n. 14
0
 /**
  * before
  *
  * @access public
  * @author Nguyen Van Hiep
  *
  * @version 1.0
  * @since 1.0
  */
 public function before()
 {
     parent::before();
     $this->lang = Session::get('active_lang');
 }
Esempio n. 15
0
 public function before()
 {
     parent::before();
     $this->title[] = 'Список клиентов';
 }