Class MenuController
Class Controller acts as a stepping stone (or "intermediate agent") between the user-defined code (/src/controllers/)
and the system-defined code (ParentController) that helps to better structure the code. See @example
-
Core\ParentController
-
Controller
-
MenuController
Example:
FooController->showProducts();
BarController->showProducts();
Controller->showProducts();
Located at controllers/MenuController.php
Methods summary
public static
MenuController
|
#
singleton( )
Returns a MenuController instance, creating it if it did not exist.
Returns a MenuController instance, creating it if it did not exist.
Returns
Overrides
|
Methods inherited from Core\ParentController
add(),
addFooter(),
addHeader(),
addJSVar(),
addScript(),
addStyle(),
asset(),
cache(),
compressWithMinify(),
get(),
getGet(),
getModel(),
getPost(),
header(),
json(),
minimize(),
minimizeURL(),
path(),
redirect(),
setFavicon(),
setTitle(),
show(),
url()
|