public function index() { $asso_table = new AssociationTable(); $asso_name = $asso_table->get('association_name'); $asso_intro = $asso_table->get('association_intro'); $notify_table = new NotifyTable(); $notifications = $notify_table->select_ten(0); $news_table = new NewsTable(); $news = $news_table->select_ten(0); $view_data = array('asso_name' => $asso_name, 'asso_intro' => $asso_intro, 'notifications' => $notifications, 'news' => $news); $this->my_render('index', $view_data); }
public function modifyContactHandler() { $this->authority(20); $phone = Util::fetch_post('phone'); $email = Util::fetch_post('email'); $asso_table = new AssociationTable(); $asso_table->set('contact_phone', $phone); $asso_table->set('contact_email', $email); Util::go_back(); }