The properties below (except componentName, bareComponentName and the ones marked with property-read) can be
configured in the fof.xml component configuration file.
Sample fof.xml:
The paths can use the variables %ROOT%, %PUBLIC%, %ADMIN%, %TMP%, %LOG% i.e. all the path keys returned by Platform's
getPlatformBaseDirs() method in uppercase and surrounded by percent signs.
Returns a container instance for a specific component. This method goes through fof.xml to read the default
configuration values for the container. You are advised to use this unless you have a specific reason for
instantiating a Container without going through the fof.xml file.
Get the applicable namespace prefix for a component section. Possible sections:
auto Auto-detect which is the current component section
inverse The inverse area than auto
site Frontend
admin Backend
Pass the value 'tempInstance' => true in the $values array to get a temporary instance. Otherwise you will get
the cached instance of the previously created container.
The application section (site, admin) you want to fetch. Any other value results in auto-detection.
Результат
Container
getNamespacePrefix()
публичныйМетод
Get the applicable namespace prefix for a component section. Possible sections:
auto Auto-detect which is the current component section
inverse The inverse area than auto
site Frontend
admin Backend