PHP Classes

File: core/src/load.php

Recommend this page to a friend!
  Classes of No name   RT Adminlte   core/src/load.php   Download  
File: core/src/load.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: RT Adminlte
Generate layout and menus for Adminlte
Author: By
Last change: Update v0.3
Date: 7 years ago
Size: 810 bytes
 

Contents

Class file image Download
<?php

/**
 * @link https://github.com/rogertiongdev/RTadminlte RTadminlte GitHub project
 * @license https://rogertiongdev.github.io/MIT-License/
 */

namespace RTdev\RTadminlte;

/**
 * RTadminlte classes loader
 *
 * @version 0.3
 * @author Roger Tiong RTdev
 */

/**
 * Load all the class under RTlib\RTadminlte
 *
 * @return boolean
 */
function RTadminlteLoad() {

    if (
defined('BASEURL') && defined('WEB_ASSETS')) {

       
$lib = array(
           
'/AdminLTE.php',
           
'/UiElements.php',
           
'/Modal.php',
           
'/RTadminlte.php'
       
);

        foreach (
$lib as $class) {

            require_once
dirname(__FILE__) . $class;
        }
        return
TRUE;
    }
    else {
       
trigger_error('BASEURL and WEB_ASSETS must be defined.');
        return
FALSE;
    }
}