TwistPHP Documentation

setDirectory

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

setDirectorySet a custom views directory to use for this routes instance, leaving blank will use the default views directory

Parameters

Name Type Description
[$dirViewPath = null]stringn/a

Return Values

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

Example

<?php
//Set the variables for the example
$dirViewPath null;

//Call the function setDirectory with the example vars
Twist::Route() -> setDirectory($dirViewPath);