Global functions

#1
[eluser]mabright[/eluser]
I'm probably over thinking and missing the obvious but I have a common template view that I call from every controller and I include other view data in the template view based on page. The template view has a header area that I want displayed on every page. In the header area I have a section that displays data based on IP address and the data is dynamically determine so I cannot just hard code a global variable in the config.php file.

I there a way to define some global include/function and have it called from the config.php file to build my dynamic content and put it in a global variable so that it can be used in my template view?


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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.