application/controllers/Users.php
/*DOCU This function adds post to the database. Owner:Philip */
DOCU This function adds post to the database. Owner:Philip
DOCU This function adds post to the database . Owner : Philip
public function add_message($id) {
		$user = $this->session->userdata("user");
		$data = array(
			"user_id" => $user->id,
			"page_id" => $id,
			"message" => $this->security->xss_clean($this->input->post("message"))
		);
		$this->message->save_message($data);
		redirect("users/show/".$this->input->post("id"));
	}
public function add_message ( $ id ) { $ user = $ this -> session -> userdata ( " user " ) ; $ data = array ( " user_id " => $ user -> id , " page_id " => $ id , " message " => $ this -> security -> xss_clean ( $ this -> input -> post ( " message " ) ) ) ; $ this -> message -> save_message ( $ data ) ; redirect ( " users/show/ " . $ this -> input -> post ( " id " ) ) ; }
DOCU This function adds post to the database.
DOCU This function adds post to the database .