Welcome Guest, Not a member yet? Register   Sign In
routing issue?
#3

[eluser]andieevans[/eluser]
Hey Ninjabear, thanks for the reply

What I am having problems with is, i set the default controller to 'public_site'

$route['default_controller'] = 'public_site';

I thought that changing the default controller meant I don't need to reference it in the URL any longer, and that index.php/about would automatically redirect to public_site/about

I have got around the issue by putting a route for each page I need like this

$route['about'] = 'public_site/about';
$route['faq'] = 'public_site/faq';
$route['news'] = 'public_site/news';

Is this the way to do it?

I also used the base_url() helper to obtain the path to my css..



Messages In This Thread
routing issue? - by El Forum - 03-23-2012, 01:00 AM
routing issue? - by El Forum - 03-23-2012, 03:19 AM
routing issue? - by El Forum - 03-23-2012, 04:04 AM
routing issue? - by El Forum - 03-23-2012, 04:39 AM
routing issue? - by El Forum - 03-23-2012, 05:01 AM
routing issue? - by El Forum - 03-23-2012, 05:59 AM
routing issue? - by El Forum - 03-23-2012, 06:07 AM
routing issue? - by El Forum - 03-23-2012, 08:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB