function in controller or new controller

#1
[eluser]dekimpeb[/eluser]
Hi,

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?


#2
[eluser]Aken[/eluser]
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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.