TwistPHP Documentation

getView

File path: dist/twist/Core/Utilities/Route.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

getViewAdd a view that will only be called upon a GET request (HTTP METHOD) to the given URI

Parameters

Name Type Description
$strURIstringn/a
$dirViewstringn/a
[$mxdBaseView = true]mixedn/a
[$mxdCache = false]mixedn/a
[$arrData = array()]arrayn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$strURI 'foo';
$dirView '/home/user/public_html/twist';
$mxdBaseView true;
$mxdCache false;
$arrData = array();

//Call the function getView with the example vars
Twist::Route() -> getView($strURI$dirView$mxdBaseView$mxdCache$arrData);