Welcome Guest, Not a member yet? Register   Sign In
Global functions
#5

[eluser]mddd[/eluser]
Helpers are not really supposed to call CI related objects/methods (although it is possible).
I think the best (most logical) way would be to include the library in the Controller. Maybe you can integrate the function from the helper into the library (if they are related of course). Anyway, if you do all the 'research' from the controller by calling models/libraries, you could pass the end result to the view. Eliminating the need to call complex routines from the view or from the helper at all.


Messages In This Thread
Global functions - by El Forum - 08-18-2010, 09:02 PM
Global functions - by El Forum - 08-18-2010, 11:44 PM
Global functions - by El Forum - 08-19-2010, 12:15 AM
Global functions - by El Forum - 08-19-2010, 07:30 AM
Global functions - by El Forum - 08-19-2010, 07:37 AM
Global functions - by El Forum - 08-19-2010, 07:45 AM
Global functions - by El Forum - 08-19-2010, 07:55 AM
Global functions - by El Forum - 08-19-2010, 08:31 AM
Global functions - by El Forum - 08-19-2010, 10:04 AM
Global functions - by El Forum - 08-19-2010, 10:27 AM
Global functions - by El Forum - 08-19-2010, 10:29 AM
Global functions - by El Forum - 08-19-2010, 10:39 AM
Global functions - by El Forum - 08-19-2010, 10:43 AM
Global functions - by El Forum - 08-30-2010, 11:06 AM
Global functions - by El Forum - 08-30-2010, 01:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB