TwistPHP Documentation

load

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

loadLoad the package into the framework for us

Parameters

Name Type Description
$strSlugstringn/a
$arrPackageDataarrayn/a

Return Values

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

Example

<?php
//Set the variables for the example
$strSlug 'foo';
$arrPackageData = array(=> 'foo'=> 'bar');

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