Welcome Guest, Not a member yet? Register   Sign In
Learning CI and very confused on URL's
#1

[eluser]ChrisF79[/eluser]
I'm stuck on something seemingly simple. I have created in my controller:

Code:
class Site extends CI_Controller {

function __construct() {
  parent::__construct();
}

function index() {

  // Load The Model To Pull Categories
  $this->load->model('site_model');    
  $this->load->view('index', $data);
}

function property() {
  $this->load->model('property_model');  
  $data['title'] = 'Test Title';
  $this->load->view('property', $data);
}

}

I have my .htaccess getting rid of the index.php part. So, I thought I could go to mysite.com/property/ and it would load the property view but that is giving me a 404. Any ideas as to what I'm doing wrong?


Messages In This Thread
Learning CI and very confused on URL's - by El Forum - 05-26-2012, 07:34 AM
Learning CI and very confused on URL's - by El Forum - 05-26-2012, 10:44 AM
Learning CI and very confused on URL's - by El Forum - 05-26-2012, 11:01 AM
Learning CI and very confused on URL's - by El Forum - 05-26-2012, 11:28 AM
Learning CI and very confused on URL's - by El Forum - 05-26-2012, 11:34 AM
Learning CI and very confused on URL's - by El Forum - 05-26-2012, 01:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB