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(); }
public function __construct() { parent::__construct('activity/list.phtml'); }
public function __construct() { parent::__construct('user/grid.phtml'); }
public function __construct() { parent::__construct('user/addform.phtml'); }
public function __construct() { parent::__construct('competitor/addform.phtml'); }
public function __construct() { parent::__construct('activity/addform.phtml'); }
public function __construct() { parent::__construct('competitor/grid.phtml'); }