PHP code example of tfhinc / ci-warehouse
1. Go to this page and download the library: Download tfhinc/ci-warehouse library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tfhinc / ci-warehouse example snippets
// Use the helper method
$this->CI->load->helper('warehouse');
$books = warehouse()->load('Books');
// Use the Warehouse class
$warehouse = new TFHInc\Warehouse\Warehouse();
$books = $warehouse->load('Books');
// Use the Warehouse CI Library
$this->load->library('Warehouse');
$books = $warehouse->load('Books');
php
$this->load->helper('warehouse');
php
$redis = new TFHInc/Warehouse/Warehouse();
php
$this->load->library('Warehouse');