function before() { parent::before(); if (!$_POST) { $this->error('Wrong request!'); } $this->post = $this->getDataFromSerialize($_POST['data']); // Get post by key => value format }
public function before() { parent::before(); $this->setBreadcrumbs('Личный кабинет', 'user'); $this->_template = 'Cabinet'; $this->_seo['h1'] = 'Личный кабинет'; $this->_seo['title'] = 'Личный кабинет'; $this->_seo['keywords'] = 'Личный кабинет'; $this->_seo['description'] = 'Личный кабинет'; }
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'; }
public function before() { parent::before(); $this->setBreadcrumbs('Статьи', 'articles'); $this->_template = 'Text'; }
public function before() { parent::before(); $this->setBreadcrumbs('Новости', 'news'); $this->_template = 'Text'; }
public function before() { parent::before(); $this->setBreadcrumbs('Бренды', 'brands'); $this->_template = 'Text'; }
public function before() { parent::before(); $this->setBreadcrumbs('Корзина', 'cart'); $this->_template = 'Cart'; }
public function before() { parent::before(); $this->_template = 'Item'; }
public function before() { parent::before(); $this->setBreadcrumbs('Оплата', 'payment'); $this->_template = 'Text'; }