Exemplo n.º 1
0
 function before()
 {
     parent::before();
     if (!$_POST) {
         $this->error('Wrong request!');
     }
     $this->post = $this->getDataFromSerialize($_POST['data']);
     // Get post by key => value format
 }
Exemplo n.º 2
0
 public function before()
 {
     parent::before();
     $this->setBreadcrumbs('Личный кабинет', 'user');
     $this->_template = 'Cabinet';
     $this->_seo['h1'] = 'Личный кабинет';
     $this->_seo['title'] = 'Личный кабинет';
     $this->_seo['keywords'] = 'Личный кабинет';
     $this->_seo['description'] = 'Личный кабинет';
 }
Exemplo n.º 3
0
 public function before()
 {
     parent::before();
     $this->_template = 'Afisha';
     $this->setBreadcrumbs('Афиша', 'afisha');
     // Set parameters for list items by $_GET
     // Get count items per page
     $this->limit = (int) Arr::get($_GET, 'per_page') ? (int) Arr::get($_GET, 'per_page') : Config::get('limit');
     // Get sort type
     $this->sort = 'afisha.' . (in_array(Arr::get($_GET, 'sort'), array('name', 'created_at', 'cost')) ? Arr::get($_GET, 'sort') : 'id');
     $this->type = in_array(strtolower(Arr::get($_GET, 'type')), array('asc', 'desc')) ? strtoupper(Arr::get($_GET, 'type')) : 'DESC';
 }
Exemplo n.º 4
0
 public function before()
 {
     parent::before();
     $this->setBreadcrumbs('Статьи', 'articles');
     $this->_template = 'Text';
 }
Exemplo n.º 5
0
 public function before()
 {
     parent::before();
     $this->setBreadcrumbs('Новости', 'news');
     $this->_template = 'Text';
 }
Exemplo n.º 6
0
 public function before()
 {
     parent::before();
     $this->setBreadcrumbs('Бренды', 'brands');
     $this->_template = 'Text';
 }
Exemplo n.º 7
0
 public function before()
 {
     parent::before();
     $this->setBreadcrumbs('Корзина', 'cart');
     $this->_template = 'Cart';
 }
Exemplo n.º 8
0
 public function before()
 {
     parent::before();
     $this->_template = 'Item';
 }
Exemplo n.º 9
0
 public function before()
 {
     parent::before();
     $this->setBreadcrumbs('Оплата', 'payment');
     $this->_template = 'Text';
 }