Welcome Guest, Not a member yet? Register   Sign In
calling a public controller method from within a view
#4

[eluser]n0xie[/eluser]
[quote author="0x0b4dc0d3" date="1254516406"]Actually, I can see why this is not "MVC-compliant" and I should really just pass whatever data I need to the view from within the controller. Is that correct?[/quote]
The short answer: Yes.

The long and generally more advanced answer: what you ask for can be done with some adjustments. wiredesignz has written several enhancements to the CI framework which make this possible, either through modules or widgets although it might be a bit advanced for someone just trying to get his feet wet.


Messages In This Thread
calling a public controller method from within a view - by El Forum - 10-02-2009, 09:41 AM
calling a public controller method from within a view - by El Forum - 10-02-2009, 09:46 AM
calling a public controller method from within a view - by El Forum - 10-02-2009, 10:15 AM
calling a public controller method from within a view - by El Forum - 10-02-2009, 10:16 AM
calling a public controller method from within a view - by El Forum - 10-02-2009, 10:39 AM
calling a public controller method from within a view - by El Forum - 10-03-2009, 04:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB