• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Newbie - some URL questions.

Hi all,

Brand new to codeigniter - watched the videos the other day, writing code today.

I currently have a single controller named "Home", and it is set as my default controller. My index() function works fine, loading some views (header, content, footer, whatever).

I have also enabled clean URLs using the tutorial here: http://www.fahdmurtaza.com/myblog/2008/0...ation.html

I have the site on my local computer at the moment, so if I browse to http://localhost/projects/bot/ I see the index page, as expect. What I want to do is create http://localhost/projects/bot/login. It is my understanding that if I add public function login(){} to the default controller mentioned above ("home.php", containing class Home), that this url should work? It doesn't seem to though, and that is what is puzzling me. Any help is appreciated!

Edit: Read some more docs, I see that this is not the case. I'd need a new controlled for this.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.