Welcome Guest, Not a member yet? Register   Sign In
Basic index($variable) question for creating a site like www.mysite.com/username
#17

[eluser]AlanW[/eluser]
[quote author="PhilTem" date="1352759915"]Maybe you want to have a look at this kinda tutorial I wrote some months ago for other people having the same problem:

http://files.ignitedco.de/codeigniter/tu...uting.html

It does not match your problem perfectly, but you might understand how the added route works.

BTW: Every route that you add must go after the default_controller and 404_override route. And watch out to take the correct apostrophes - PHP uses quotation marks and no apostrophes Wink [/quote]


I looked at your tutorial and noticed you have some constructor code. But the CI User Guide does not have the constructor at the beginning here: http://ellislab.com/codeigniter/user-gui...llers.html It does mention contractors later on but I'm not familiar enough with CI to know if the following constructor code is always required:

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

I don't have this in my controllers…do I require it?


Messages In This Thread
Basic index($variable) question for creating a site like www.mysite.com/username - by El Forum - 11-12-2012, 04:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB