Ubiquity
2.0.2
php rapid development framework
ControllerBase.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Ubiquity\controllers
;
4
5
use
Ubiquity\utils\http\URequest
;
6
7
abstract
class
ControllerBase
extends
Controller
{
8
protected
$headerView
=
"main/vHeader.html"
;
9
protected
$footerView
=
"main/vFooter.html"
;
10
11
public
function
initialize
() {
12
if
(!
URequest::isAjax
()) {
13
$this->
loadView
($this->headerView);
14
}
15
}
16
17
public
function
finalize
() {
18
if
(!
URequest::isAjax
()) {
19
$this->
loadView
($this->footerView);
20
}
21
}
22
}
23
Ubiquity\controllers\ControllerBase\$footerView
$footerView
Definition:
ControllerBase.php:9
URequest
Ubiquity\controllers\ControllerBase
Definition:
ControllerBase.php:7
Ubiquity\controllers\Controller\loadView
loadView($viewName, $pData=NULL, $asString=false)
Loads the view $viewName possibly passing the variables $pdata.
Definition:
Controller.php:64
Ubiquity\controllers\Controller
Base class for controllers.
Definition:
Controller.php:18
Ubiquity\utils\http\URequest\isAjax
static isAjax()
Returns true if the request is an Ajax request.
Definition:
URequest.php:101
Ubiquity\controllers\ControllerBase\$headerView
$headerView
Definition:
ControllerBase.php:8
Ubiquity\controllers
This file is part of Ubiquity framework.
Ubiquity\controllers\ControllerBase\finalize
finalize()
Definition:
ControllerBase.php:17
Ubiquity\controllers\ControllerBase\initialize
initialize()
Definition:
ControllerBase.php:11
Ubiquity
controllers
ControllerBase.php
Generated on Tue Mar 13 2018 03:05:07 for
Ubiquity
by
doxygen
1.8.13