getVar('username')); $data["mode"] = RESET_START; if ($data['username'] != '') { // echo COREGRADE_START_RESET_PASSWORD; $ret = CoreGradeClient::coreGradeWebApi(COREGRADE_START_RESET_PASSWORD, $data, $out); $data["next_page"] = 100; } else { $data["error_message"] = "Please enter a valid username to continue"; } } return view('home/resetpass', $data); } public function howitworks() { return view('home/howitworks'); } public function blog() { $data = array(); $data["blog_post"] =$this->getBlogItems(); // $blog_post; return view('blog/index',$data); } }