Newbie - some URL questions. |
[eluser]Unknown[/eluser]
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. /thread |
Welcome Guest, Not a member yet? Register Sign In |