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