function route() { $action = TouAppHelper::get_param('action'); if ($action == 'process-form') { return $this->process_form(); } else { return $this->display_form(); } }
function route() { $action = TouAppHelper::get_param('tou_page'); if ($action == 'tou') { return $this->welcome_message(); } else { return $this->get_terms(array('admin' => true, 'echo' => true)); } }