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

[eluser]mabright[/eluser]
This is what I am doing now, I get the header data in my controller and pass to the view. However I do not want to gather the same data in each of my controllers and pass to the common view.

Before I started using CI, I would have a global file with global variables and functions and in all my pages I could just use global variables instead of having to build the data in each page.

I want to replicate this in CI. I thought I could create a helper to do this by the data I am trying to retrieve using one of my custom library files and I cannot include it in the helper.

Can or should I call my library class from the view directly?


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