Welcome Guest, Not a member yet? Register   Sign In
Controller within a controller , is it possible?
#1

[eluser]ferex[/eluser]
Hello,
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.
#2

[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.
#3

[eluser]ferex[/eluser]
Thank you, I know now Smile




Theme © iAndrew 2016 - Forum software by © MyBB