AbstractAdminController
Base class for pages and actions in the WordPress admin.
- Full name:
\CEKW\WpPlugin\AbstractAdminController
- This class implements:
\CEKW\WpPlugin\HookSubscriberInterface
Table of contents
Properties
Name | Type | Description |
---|---|---|
templatePath | string | Path to the templates directory for admin templates. |
config | \CEKW\WpPlugin\Config | Holds the plugin directory path, URL and basename. |
Methods
__construct
AbstractAdminController::__construct(\CEKW\WpPlugin\Config config)
Parameters:
Parameter | Type | Description |
---|---|---|
config | \CEKW\WpPlugin\Config | Â |
render
Renders a template.
AbstractAdminController::render(string template, array params = []): string
Parameters:
Parameter | Type | Description |
---|---|---|
template | string | Â |
params | array | Â |
Returns: string