Welcome Guest, Not a member yet? Register   Sign In
Call function from controller in view
#2

You should not be calling a method from a controller in you views, that would be breaking the MVC rule.

If you need something like that then create a library or helper with the method in it.

To execute a method in the controller use an CodeIgniter achor or html link.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: Call function from controller in view - by InsiteFX - 11-19-2021, 03:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB