Welcome Guest, Not a member yet? Register   Sign In
.html to CodeIgniter
#2

[eluser]Jelmer[/eluser]
Just read the userguide about routing:
http://ellislab.com/codeigniter/user-gui...uting.html

You could rewrite everything like this:
Quote:$route[':any'] = "controller_1/function_1";
Just remember to put any rules for other controllers before this one.

And take a look in the application/config/config.php file near line 60 for this:
Code:
/*
|--------------------------------------------------------------------------
| URL suffix
|--------------------------------------------------------------------------
|
| This option allows you to add a suffix to all URLs generated by CodeIgniter.
| For more information please see the user guide:
|
| http://ellislab.com/codeigniter/user-guide/general/urls.html
*/

$config['url_suffix'] = "";
Which you can set to ".html"


Messages In This Thread
.html to CodeIgniter - by El Forum - 01-20-2009, 05:03 AM
.html to CodeIgniter - by El Forum - 01-20-2009, 05:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB