application/controllers/Venues.php
/**
     * Shows for through the add.php page
     * Allows one to add info about venues
     * @param none
     * @return venues/success if form is validated correctly
     * @todo none
     */
Shows for through the add.php page
Allows one to add info about venues
@param none
@return venues/success if form is validated correctly
@todo none
Shows for through the add . php page Allows one to add info about venues @param none @return venues / success if form is validated correctly @todo none
public function add()
    {
        $this->load->helper('form');
        $this->load->library('form_validation');
        $data['title'] = 'Add a new Venue';
        if ($this->form_validation->run() == FALSE)
        {
            $this->load->view('venues/add', $data);
        }
        else
        {
           $data['venues'] = $this->Venues_model->get_Venues();
           $data['title']= 'Venues';
            $this->Venues_model->add_Venues();
            $this->load->view('venues/success', $data);
        }
    }
public function add ( ) { $ this -> load -> helper ( 'form' ) ; $ this -> load -> library ( 'form_validation' ) ; $ data [ 'title' ] = 'Add a new Venue' ; if ( $ this -> form_validation -> run ( ) == FALSE ) { $ this -> load -> view ( 'venues/add' , $ data ) ; } else { $ data [ 'venues' ] = $ this -> Venues_model -> get_Venues ( ) ; $ data [ 'title' ] = 'Venues' ; $ this -> Venues_model -> add_Venues ( ) ; $ this -> load -> view ( 'venues/success' , $ data ) ; } }
Shows for through the add.php page
 Allows one to add info about venues
 @param none
 @return venues/success if form is validated correctly
 @todo none
Shows for through the add . php page Allows one to add info about venues @param none @return venues / success if form is validated correctly @todo none