description | Request Class to intepret a request to the server |
type | php |
source | src\dvc\Request.php |
if ( dvc\Request::get()->isPost()) {
// everything must be post ...
};
This class is largely wrapped into the Controller class, and utilized heavily by the Application class, as such normally you use this within the controller as:
class property extends \Controller {
function view() {
if ( $id = (int)$this->getParam( 'id')) {
printf( 'cool, so you want to view property #%d', $id);
}
else {
printf 'say, what are you doing here ?';
}
}
}