20 if (isset ( $pData )) {
25 return \ob_get_clean ();
39 public function loadView(
string $viewName, $pData = NULL,
bool $asString =
false) {
40 $filename = \ROOT . \DS .
'views' . \DS . $viewName;
44 if (isset ( $pData )) {
Base class for controllers.
Default controller displaying php views only.
__construct()
Constructor initialize $view variable.
loadView(string $viewName, $pData=NULL, bool $asString=false)
Loads the php view $viewName possibly passing the variables $pdata.
_includeFileAsString($filename, $pData)