Welcome Guest, Not a member yet? Register   Sign In
Controllers decision: Dynamic or static content?
#3

[eluser]Unknown[/eluser]
Fantastic! Works great, thank you! Smile

[Edit]
Wait... it's not:

When you use that:
Code:
$route['default_controller'] = "site";
$route['scaffolding_trigger'] = "";

$route['blog/:any'] = "blog/$1";
$route['(:any)'] = "site";
[/quote]

CI will only redirect to blog, when you call a method from blog. To redirect blog/ to the blog-controller you have to use a short regular expression:

Code:
$route['default_controller'] = "site";
$route['scaffolding_trigger'] = "";

$route['blog(.*)'] = "blog$1";
$route['(:any)'] = "site";
[/quote]


Messages In This Thread
Controllers decision: Dynamic or static content? - by El Forum - 01-24-2010, 04:53 PM
Controllers decision: Dynamic or static content? - by El Forum - 01-24-2010, 05:47 PM
Controllers decision: Dynamic or static content? - by El Forum - 01-24-2010, 06:26 PM
Controllers decision: Dynamic or static content? - by El Forum - 01-25-2010, 04:02 AM
Controllers decision: Dynamic or static content? - by El Forum - 01-25-2010, 06:42 AM
Controllers decision: Dynamic or static content? - by El Forum - 02-02-2010, 03:21 PM
Controllers decision: Dynamic or static content? - by El Forum - 02-09-2010, 02:31 PM
Controllers decision: Dynamic or static content? - by El Forum - 02-09-2010, 03:57 PM
Controllers decision: Dynamic or static content? - by El Forum - 02-11-2010, 04:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB