Welcome Guest, Not a member yet? Register   Sign In
function in controller or new controller


I was wondering when you need to use a function in a controller and when you need to use a new controller?

I'll give an example.

You have a controller 'home', here you load a view with links. Now from that page you want to go the profile of your account. Now do you use a function for this or a function?


It depends on what you want your URLs to look like. Read the user guide about CodeIgniter URLs and the Controllers page to see how they are configured / tied to each other.

Theme © iAndrew 2016 - Forum software by © MyBB