Welcome Guest, Not a member yet? Register   Sign In
accessing config variables from helpers or library
#2

[eluser]Jeremy Gimbel - Conflux Group[/eluser]
Helpers do not have direct access to the CodeIgniter object.

You'll need to either pass data in through the parameters of the function or consider moving the code to a Model, Controller or Library accordingly for its purpose.

Helpers are generally just used to do very general-purpose tasks that don't require access to the data and variables in the rest of the applications's objects.


Messages In This Thread
accessing config variables from helpers or library - by El Forum - 11-13-2009, 06:39 PM
accessing config variables from helpers or library - by El Forum - 11-29-2009, 07:09 PM
accessing config variables from helpers or library - by El Forum - 11-30-2009, 03:07 AM
accessing config variables from helpers or library - by El Forum - 11-30-2009, 01:48 PM
accessing config variables from helpers or library - by El Forum - 11-30-2009, 02:04 PM
accessing config variables from helpers or library - by El Forum - 11-30-2009, 02:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB