[FLOW3-general] Accessing resources from classes

Zachary Davis, Cast Iron Coding LLC zach at castironcoding.com
Tue Dec 1 15:14:25 CET 2009


Hi all,

Are there any best practices in place for accessing files in a packages 
resources directory? I'm trying to come up with a good way to pull error 
  messages and flash messages out of the code and into an external 
document. I've been considering storing them in XML somewhere in 
Resources/Private and writing a simple  service that can be used by 
controllers and view helpers to retrieve the text, but I'm not sure what 
the best way is to access files in Resources from within a class.

Or, perhaps settings.yaml is a better place to store this sort of thing?

best,
Zach


More information about the FLOW3-general mailing list