Example #1
0
 public function before()
 {
     parent::before();
     // Выводим в шаблон
     $this->template->block_left = null;
     $this->template->block_right = null;
 }
Example #2
0
 public function before()
 {
     parent::before();
     if (!Auth::instance()->logged_in()) {
         $this->request->redirect('account');
     }
 }
Example #3
0
 public function before()
 {
     parent::before();
     $this->template->styles[] = 'media/css/lightbox.css';
     $this->template->scripts[] = 'media/js/lightbox.js';
     $this->template->scripts[] = 'media/js/images.js';
 }
Example #4
0
 public function before()
 {
     parent::before();
     if (!$this->auth->logged_in()) {
         $this->request->redirect('login');
     }
 }
Example #5
0
 public function before()
 {
     parent::before();
     $this->template->styles[] = 'media/css/lightbox.css';
     $this->template->scripts[] = 'media/js/plugin_cat_wondows.js';
     $this->template->scripts[] = 'media/js/lightbox.js';
 }
Example #6
0
 public function before()
 {
     parent::before();
     $menu = Request::factory('widgets/menu')->execute();
     $bay = Request::factory('widgets/mybay')->execute();
     $this->template->block_left = array($menu);
     $this->template->block_headerRight = array($bay);
 }
Example #7
0
 public function before()
 {
     parent::before();
     //получить виджет
     $menu = Request::factory('widgets/menu')->execute();
     $top = Request::factory('widgets/topproducts')->execute();
     //вывести в шаблон
     $this->template->block_left = array($menu);
     $this->template->block_right = array($top);
 }
Example #8
0
 public function before()
 {
     parent::before();
     //виджеты
     $menu = Request::factory('widgets/menu')->execute();
     $topproducts = Request::factory('widgets/topproducts')->execute();
     $into = Request::factory('widgets/Into')->execute();
     $mybay = Request::factory('widgets/mybay')->execute();
     $news = Request::factory('widgets/news')->execute();
     //вывод в шаблон
     $this->template->block_headerRight = array($mybay);
     $this->template->block_left = array($menu);
     $this->template->block_right = array($into, $topproducts, $news);
 }
Example #9
0
 public function before()
 {
     parent::before();
     //Вывод в шаблон
     $this->template->page_title = 'Статии';
 }
Example #10
0
 public function before()
 {
     parent::before();
 }
Example #11
0
 public function before()
 {
     parent::before();
     Auth::instance()->logout();
 }
Example #12
0
 public function before()
 {
     parent::before();
     $menu = Request::factory('/widgets/menu')->execute();
     $this->template->block_left = array($menu);
 }
Example #13
0
 public function before()
 {
     parent::before();
     //Вывод в шаблон
     $this->template->page_title = 'Производительи';
 }
Example #14
0
 public function before()
 {
     parent::before();
     $config = Kohana::$config->load('payments.robokassa');
     $this->robokassa = Robokassa::factory($config['login'], $config['password1'], $config['password2']);
 }