function execute() { $event = Request::post('event'); $eventList = connectionNotificationModel::getEventList(); $locale = new Locales('connection'); $list = $locale->getList(); $this->smarty->assign('eventInfo', $eventList[$event]); $this->smarty->assign('lang', $list); $this->smarty->assign('event', connectionNotificationModel::create()->getEvent($event)); }
function execute() { $locale = new Locales('connection'); $list = $locale->getList(); $notification = connectionNotificationModel::create()->where(array('id' => (int) Request::post('id')))->fetchOne(); $eventList = connectionNotificationModel::getEventList(); $this->smarty->assign('eventInfo', $eventList[$notification['event']]); $this->smarty->assign('lang', $list); $this->smarty->assign('notification', $notification); }