TwistPHP Documentation

setControllerDirectory

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

setControllerDirectorySet a custom controller directory to use for this routes instance, leaving blank will use the default controllers directory

Parameters

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

Return Values

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

Example

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

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