TwistPHP Documentation

_extended

File path: dist/twist/Core/Controllers/Base.controller.php
Namespace: Twist\Core\Controllers
Extends:

_extendedA function that is called by Routes both to ensure that the controller has been extended and so that we can pass in resources and information required by the controller.

Parameters

Name Type Description
$resRouteresourcen/a
$arrRouteDataarrayn/a

Return Values

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

Example

<?php
//Set the variables for the example
$resRoute = (resource);
$arrRouteData = array(=> 'foo'=> 'bar');

//Call the function _extended with the example vars
$resBase = new \Twist\Core\Controllers\Base();
$resBase -> _extended($resRoute$arrRouteData);