Welcome Guest, Not a member yet? Register   Sign In
Use function instead of a controller
#3

[eluser]ruiganga[/eluser]
Oh yeah. very simple indeed after knowing what routes are for.

The only code I needed was this:

Code:
$route['logout'] = "main/logout";

Thanks.

But now I want that site.com/main/logout to not exist, or in other words, at least redirect to a new url.

I've couldn't accomplish this with routes. Should I use the controller instead? how?

Thanks for any help.


Messages In This Thread
Use function instead of a controller - by El Forum - 01-25-2014, 03:14 PM
Use function instead of a controller - by El Forum - 01-25-2014, 09:15 PM
Use function instead of a controller - by El Forum - 01-26-2014, 05:05 AM
Use function instead of a controller - by El Forum - 01-26-2014, 05:15 AM
Use function instead of a controller - by El Forum - 01-26-2014, 08:40 AM
Use function instead of a controller - by El Forum - 01-26-2014, 01:07 PM
Use function instead of a controller - by El Forum - 02-06-2014, 11:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB