Пример #1
0
 public function __construct($title = '')
 {
     parent::__construct($title);
     $promotion = Db_Promotions::getWithTrans($this->Id);
     $this->TPL->assign('promotion', $promotion);
     $promotions = Db_Promotions::getAllWithTrans();
     $this->TPL->assign('promotions', $promotions);
 }
Пример #2
0
 private function CheckIdExist()
 {
     if (!Db_Promotions::checkExists($this->Id, 'id')) {
         $this->Msg->SetMsg($this->_T('error_id_not_exist') . ' ' . $this->Id);
         $this->Msg->SetError(true);
         $this->Redirect($this->PageUrl);
     }
 }