Class VendorController
Class VendorController is the parent class for all plugins (located in the plugin folder).
Please notice that some functions, when called from plugins, have different names (view, get, asset). See @see for more details.
- Core\ParentController
- Vendor\VendorController
Namespace: Vendor
Package: Vendor
See:
See:
See:
Note: Respect the directives for creating new plugins. See the example ones for more info.
Located at VendorController.php
Package: Vendor
See:
Vendor\VendorController::vendor_show()
See:
Vendor\VendorController::vendor_get()
See:
Vendor\VendorController::vendor_asset()
Note: Respect the directives for creating new plugins. See the example ones for more info.
Located at VendorController.php
public static
|
|
public
|
#
vendor_show( string $view, string|boolean $template = FALSE )
This is an implementation of ParentController::show() to allow for plugins. |
public
string
|
#
vendor_get( string $view, array|[] $vars = [], string|boolean $template = FALSE )
This is an implementation of ParentController::get() to allow for plugins. |
public
|
#
vendorSaveCache( )
Saves the vendor directives (Folders, Controllers, Models, Routing and Permissions) to a cache file. |
public
|
#
addStyle( string $path, boolean|true $local = TRUE, boolean $dummy = TRUE )
Adds a style snippet to the $this->vendor_show() renderer. |
public
|
#
addScript( string $path, boolean|true $local = TRUE, boolean $dummy = TRUE )
Adds a script snippet to the $this->vendor_show() renderer. |
public
string|
|
#
vendor_asset( string $path, boolean|false $return = FALSE )
Echoes or returns the absolute path to the asset |
__construct(),
add(),
addFooter(),
addHeader(),
addJSVar(),
asset(),
cache(),
compressWithMinify(),
get(),
getGet(),
getModel(),
getPost(),
header(),
json(),
minimize(),
minimizeURL(),
path(),
redirect(),
setFavicon(),
setTitle(),
show(),
url()
|
public
string
|
$pluginFolder
The path where each plugin is stored. Set individually in each plugin (children). |
$ajax,
$config,
$hooks,
$model,
$path,
$templatePath,
$vars,
$viewPath
|