Thursday 30 August 2007 7:26:29 am
Hi all, I need to access a Matrix which I defined in the backend in the Common INI Settings class. I can do it this way:
$chosenNode = eZContentObject::fetch( 52 ) ;
$dataMap = $chosenNode->dataMap();
$matrix=$dataMap['my_matrix']->content();
but obviously, I have hardcoded the instance ID of the Common INI Settings class, and I feel bad doing this kind of things. What would be a better way of getting to this class, without hard wiring the ID? Is it safe to assume this will be 52 in the feature?
Thanks in advance for your help, -Pascal
|