Example #1
0
 public function deleteAction()
 {
     $response = new manage_block_template('response.phtml');
     $city_id = app::getRequest()->getParam('city_id', null);
     if ($city_id) {
         try {
             $city = app::getModel('manage_model_city')->load($city_id);
             $city->delete();
             $response->setVar('success', 'Удалено');
         } catch (Exception $e) {
             $response->setVar('error', $e->getMessage());
         }
     }
     $response->renderHtml();
 }
Example #2
0
 public function __construct()
 {
     parent::__construct('activity/list.phtml');
 }
Example #3
0
 public function __construct()
 {
     parent::__construct('user/grid.phtml');
 }
Example #4
0
 public function __construct()
 {
     parent::__construct('user/addform.phtml');
 }
Example #5
0
 public function __construct()
 {
     parent::__construct('competitor/addform.phtml');
 }
Example #6
0
 public function __construct()
 {
     parent::__construct('activity/addform.phtml');
 }
Example #7
0
 public function __construct()
 {
     parent::__construct('competitor/grid.phtml');
 }