예제 #1
0
파일: cart.php 프로젝트: boltogriz/kohana
 public function before()
 {
     parent::before();
     // Выводим в шаблон
     $this->template->block_left = null;
     $this->template->block_right = null;
 }
예제 #2
0
파일: order.php 프로젝트: raku/mykohana
 public function before()
 {
     parent::before();
     if (!Auth::instance()->logged_in()) {
         $this->request->redirect('account');
     }
 }
예제 #3
0
파일: View.php 프로젝트: ruslankus/ligneus
 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';
 }
예제 #4
0
파일: account.php 프로젝트: raku/mykohana
 public function before()
 {
     parent::before();
     if (!$this->auth->logged_in()) {
         $this->request->redirect('login');
     }
 }
예제 #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';
 }
예제 #6
0
파일: news.php 프로젝트: boltogriz/kohana
 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);
 }
예제 #7
0
파일: bay.php 프로젝트: boltogriz/kohana
 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);
 }
예제 #8
0
파일: main.php 프로젝트: boltogriz/kohana
 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);
 }
예제 #9
0
파일: articles.php 프로젝트: raku/mykohana
 public function before()
 {
     parent::before();
     //Вывод в шаблон
     $this->template->page_title = 'Статии';
 }
예제 #10
0
파일: cart.php 프로젝트: raku/mykohana
 public function before()
 {
     parent::before();
 }
예제 #11
0
파일: user.php 프로젝트: asanoturna/moni
 public function before()
 {
     parent::before();
     Auth::instance()->logout();
 }
예제 #12
0
파일: auto.php 프로젝트: boltogriz/kohana
 public function before()
 {
     parent::before();
     $menu = Request::factory('/widgets/menu')->execute();
     $this->template->block_left = array($menu);
 }
예제 #13
0
 public function before()
 {
     parent::before();
     //Вывод в шаблон
     $this->template->page_title = 'Производительи';
 }
예제 #14
0
 public function before()
 {
     parent::before();
     $config = Kohana::$config->load('payments.robokassa');
     $this->robokassa = Robokassa::factory($config['login'], $config['password1'], $config['password2']);
 }