TwistPHP Documentation

packageRequired

File path: dist/twist/Core/Routes/Base.route.php
Namespace: Twist\Core\Routes
Extends: Route

packageRequiredFunction to detect if a package exists or has been installed

Parameters

Name Type Description
$strModulestringn/a

Return Values

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

Example

<?php
//Set the variables for the example
$strModule 'foo';

//Call the function packageRequired with the example vars
Twist::Base() -> packageRequired($strModule);