application/models/PageModel.php
/**
     * Method to insert contact form data
     * 
     * @param $contactData Contact Form Data
     * 
     * @return Last insert ID
     */
Method to insert contact form data

@param $contactData Contact Form Data

@return Last insert ID
Method to insert contact form data @param $contactData Contact Form Data @return Last insert ID
public function insertContactData($contactData)
    {
        $this->db->insert('contacts', $contactData);
        return $this->db->insert_id();
    }
public function insertContactData ( $ contactData ) { $ this -> db -> insert ( 'contacts' , $ contactData ) ; return $ this -> db -> insert_id ( ) ; }
Method to insert contact form data
Method to insert contact form data