Class \Prado\Util\TPluginModule
TPluginModule class.
TPluginModule is for extending PRADO through Composer packages. This installs its own Pages, where available, and its own error message file for the module.
Plugin pages should implement their *.page with the following page code:
<com:TContent ID=<%$ PluginContentId %>>
... your page content ...
</com:TContent>
The 'PluginContentId' application parameter is what all plugin pages should implement as the page TContent ID. This way all plugin pages can be changed to the page MasterClass layout TContentPlaceHolder for the application and layout. For example in the application configuration file:
<parameters>
<parameter id="PluginContentId" value="Main" />
</parameters>
Class hierarchy
- \Prado\Util\TPluginModule implements IPluginModule
- \Prado\TModule implements IModule
- \Prado\TApplicationComponent
- \Prado\TComponent
Since: 4.2.0
public
|
additionalPagePaths(TPageService $service, string $pagePath) : mixed
additionalPagePaths returns possible alternative paths for the $pagePath
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
init(array<string|int, mixed> $config) : mixed
initializes the plugin module, looks for a Pages directory and adds a new {@see \Prado\Util\TBehavior}
to help TPageService find any plugin module pages
|
public
|
|
public
|
|
public
|
public
mixed
|
PAGES_DIRECTORY
Module pages directory for finding pages of a module
|
'Pages'
|
\Prado\TApplicationComponent::FX_CACHE_FILE, \Prado\TComponent::GLOBAL_RAISE_EVENT_LISTENER |