TwistPHP Documentation

importSettings

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

importSettingsInstall any framework settings that are required by the package, this function is called by the packages install.php file located in the package folder.

Parameters

Name Type Description
$dirSettingsJSONstringn/a

Return Values

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

Example

<?php
//Set the variables for the example
$dirSettingsJSON '/home/user/public_html/twist';

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