http://www.mysite.com works fine by directing content to a Main controller by rewriting the URL
Now, I’m trying to get a site looking like twitter, such that my username is passed through as $variable to index
In my default controller, which is Main, I have
class Main extends CI_Controller {
public function index($username=null) {
… code
}
}
The code runs fine only when I eliminate the ($username=null) and just go with index(). With the $username, I get a 404. I’ve checked the UG but stumped!
Thanks in advance!
