[TYPO3-50-general] Use setting in model

Bastian Waidelich bastian at typo3.org
Mon Mar 11 11:11:10 CET 2013


Piseth Sok wrote:

Hi,

> I met one problem.
> I want to use value Settings.yaml in my model.

What exactly is your problem with that? ;)
You should be able to access settings by writing an "injectSettings" 
method (see [1]).

But usually, if you need to access settings in your domain model there's 
something wrong. Can you elaborate on why you need to access settings 
from within the model?


[1] 
http://docs.typo3.org/flow/TYPO3FlowDocumentation/TheDefinitiveGuide/PartIII/Configuration.html#accessing-settings


-- 
Bastian Waidelich
--
Core Developer Team

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the TYPO3-project-5_0-general mailing list