Welcome Guest, Not a member yet? Register   Sign In
URI - Routing
#2

Why not removing the index()

PHP Code:
$route['contact-us'] = 'contact/show_ContactUs'

And your controller

PHP Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class 
Contact extends API_Controller {
    
    public function 
__construct() {
        
parent::__construct();
    }
    
    public function 
show_ContactUs(){
        
$this->load->view("contact-us");
    }

Reply


Messages In This Thread
URI - Routing - by consigliere - 06-01-2017, 04:20 AM
RE: URI - Routing - by Krycek - 06-01-2017, 04:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB