• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Programming Advice : Best way to pass global variables to ME Modules?

#1
[eluser]opel[/eluser]
I am using the Modular extensions system to break my application into modules with a front end and back end controller e.g.

Blog
--Controllers
----blog.php
----admin.php


My questions is what is the best way to pass global variables to all the controllers? I have set up a settings controller and also a settings library but I think it is overkill.

The settings will include the site information e.g. company name, details etc and mainly the modules I am using. I want to create a list of arrays in a central location that I can edit for future sites. This will be done by me or another developer so at the moment using a DB isn't required.

Any advice is appreciated.

Cheers


Messages In This Thread
Programming Advice : Best way to pass global variables to ME Modules? - by El Forum - 02-09-2009, 02:48 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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