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

[eluser]ruiganga[/eluser]
Hi

This is my first CI project so please forgive my dumbness.

After viewing 3 full tutorials, I've designed my app like this:

Main Controller
- index function show app home
- login function show form
- logout function kills session and redirect to app root

Looks simple. I can do it if Login and Logout are Controllers, but instead, I wish them to be functions of Main controller.

site.com -> execute Main Controller index function

I expect to

site.com/login -> execute Main Controller login function

Any way to do this?

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