public function logout() { miscellaneous::deleteApplySeesion(); $this->model->logout(); }
public function run() { //self::final_step(); if (Input::exists('post')) { //check if form loaded propely if (Token::check(Input::get('token'))) { //check captcha security if (captchaValidattion::ok()) { self::final_step(); $applyID = $this->model->process(); if ($applyID) { echo "Success..applyID = " . $applyID . '<br/>'; } else { echo "SORRY! Error apply..try again!"; } miscellaneous::deleteApplySeesion(); } else { Session::flush('invalid-captcha', Messages::invalidCaptcha()); Redirect::to(SITE_URL . '/admissionform/step2'); } } else { return miscellaneous::Error(); } } else { return miscellaneous::Error(); } }