Welcome Guest, Not a member yet? Register   Sign In
Thoughts on sending data to library from view
#4

How about dependency inversion and make services that views can access?

In my opinion, deciding how to present content is what View in MVC pattern responsible for, and themes belong to the presentation, so it is perfectly fine to make the decision there. And this is why I do not particularly like the examples in CI documentation where the controller does the view chaining.
Reply


Messages In This Thread
RE: Thoughts on sending data to library from view - by bivanbi - 12-17-2020, 04:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB