• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Accesto from view to function of two distinct controller

Hello !! This is my first post and I have searched about this but there are no results ...

I have a view called from one controller, but if possible I need to execute a function from another controller.

Can this be done?
How ?

Thank you and sorry for my English

You are only able to share the same function in a Controller, if they both extend the same parent.

Movies extends Example
Games extends Example

Movies and Games can now access functions in Example.

Or you need to add your functionally to a library, so you can share functions that way.

Thank you !

I think my question has been resolved.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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