• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Controller within a controller , is it possible?

one question please, i'm a little confused
is there a way to call
within the index controller other controllers, so the index become a controller of controllers Smile ?
i'm saying that because
on my web i will have different parts in the index, which are not related, so
i'm trying but i don't get how to separate them,

an example would be
to have inside the index view
two other views
the latest news view
the who we are view
each one working with its own respective controller loaded at the begining.

Thank you for your help.

[eluser]Pascal Kriete[/eluser]
Libraries or helpers exist to hold shared logic like this. Just like you would use a model for shared data manipulation. You can read more about creating libraries here.

Welcome to CodeIgniter.

Thank you, I know now Smile

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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