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
  1. Properties
  2. Methods
    1. __construct
    2. render

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