TwistPHP Documentation

_model

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

_modelReturns the Model object which is only set when {model:App\My\Model} is defined in your URI, From here all functions of the model can be called.

Return Values

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

Example

<?php
//Call the function _model with the example vars
$resBase = new \Twist\Core\Controllers\Base();
$resBase -> _model();