application/controllers/Dashboard.php
/*getting the info of the admin to be displayed */
getting the info of the admin to be displayed
getting the info of the admin to be displayed
public function adminInfo(){
	 		$info = $this->session->userdata('admin');
	 		extract($info);
	 		$ret = $this->dashboard_model->setAdminInfo($id);
	 		if($ret === false){
	 			echo "No active user!";
	 		}else{
	 			echo json_encode($ret);
	 		}
	 	}
public function adminInfo ( ) { $ info = $ this -> session -> userdata ( 'admin' ) ; extract ( $ info ) ; $ ret = $ this -> dashboard_model -> setAdminInfo ( $ id ) ; if ( $ ret === false ) { echo " No active user! " ; } else { echo json_encode ( $ ret ) ; } }
getting the info of the admin to be displayed
getting the info of the admin to be displayed