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
Direct known subclasses
Vendor\ExampleVendor\ExampleVendorController
Namespace: Vendor
Package: Vendor
See: VendorController@vendor_show
See: VendorController@vendor_get
See: VendorController@vendor_asset
Note: Respect the directives for creating new plugins. See the example ones for more info.
Located at app/controllers/VendorController.php
Package: Vendor
See: VendorController@vendor_show
See: VendorController@vendor_get
See: VendorController@vendor_asset
Note: Respect the directives for creating new plugins. See the example ones for more info.
Located at app/controllers/VendorController.php
public static
|
|
public
|
|
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
|
|
public
|
|
public
string|
|
#
vendor_asset( string $path, boolean|false $return = FALSE )
Echoes or returns the absolute path to the asset |
public
|
|
public
|
add(),
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). |
|
protected
array
|
$vars
Array to store information about the view: scripts, styles, views, title... |
$ajax,
$config,
$hooks,
$model,
$path,
$templatePath,
$viewPath
|