Exemplo n.º 1
0
 public function after($response)
 {
     if (empty($response) or !$response instanceof Response) {
         $response = \Response::forge(\Theme::instance()->render());
     }
     return parent::after($response);
 }
Exemplo 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);
 }
Exemplo n.º 3
0
 public function before()
 {
     parent::before();
     $installation_status = Kohana::$config->load('app.installation_status');
     if ($installation_status != INSTALLED) {
         $this->redirect('/install');
     }
 }
Exemplo 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();
 }
Exemplo n.º 5
0
 public function before()
 {
     parent::before();
     $this->theme->active('system');
     $this->theme->set_template('index');
 }
Exemplo n.º 6
0
 public function before()
 {
     parent::before();
     $this->title[] = 'Отчеты';
 }
Exemplo n.º 7
0
 public function before()
 {
     parent::before();
     $this->title[] = 'Сообщения';
 }
Exemplo n.º 8
0
 public function before()
 {
     parent::before();
     $this->title[] = 'Клиент';
 }
Exemplo n.º 9
0
 public function before()
 {
     parent::before();
     $this->title[] = 'Новости';
 }
Exemplo n.º 10
0
 public function before()
 {
     parent::before();
     $this->title[] = 'Управление';
 }
Exemplo 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');
 }
Exemplo n.º 12
0
 public function before()
 {
     parent::before();
     $this->no_layout();
     $this->no_view();
 }
Exemplo n.º 13
0
 public function before()
 {
     parent::before();
     $this->title[] = 'Поддержка';
 }
Exemplo 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');
 }
Exemplo n.º 15
0
 public function before()
 {
     parent::before();
     $this->title[] = 'Список клиентов';
 }