TwistPHP Documentation

installer

File path: dist/twist/Core/Models/Package.model.php
Namespace: Twist\Core\Models
Extends:

installerFind the uninstalled package by its slug and run the install.php file within the package folder.

Parameters

Name Type Description
$strInstallSlugstringn/a

Return Values

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

Example

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

//Call the function installer with the example vars
$resPackage = new \Twist\Core\Models\Package();
$resPackage -> installer($strInstallSlug);