Exemplo n.º 1
0
 /**
  * Registration
  * @access public
  * @static
  * @name register
  */
 public static function register()
 {
     self::$prefix = substr(__CLASS__, 0, strpos(__CLASS__, '_') + 1);
     self::$path = dirname(dirname(realpath(__FILE__))) . DIRECTORY_SEPARATOR;
     // ici est opéré la registration
     spl_autoload_register(array(__CLASS__, 'autoload'));
 }
Exemplo n.º 2
0
 * @category   backend
 * @package    load class and config files
 * @copyright  MAGIX CMS Copyright (c) 2010 - 2012 Gerits Aurelien, 
 * http://www.magix-cms.com, http://www.magix-cjquery.com
 * @license    Dual licensed under the MIT or GPL Version 3 licenses.
 * @version    1.0
 * @author Gérits Aurélien <*****@*****.**>
 * @name mcinstall
 *
 */
/**
 * Charge toutes les Classes de l'application
 */
$magixglobal = '../app/magixglobal/autoload.php';
$mcinstall = 'app/autoload.php';
if (!file_exists($magixglobal) || !file_exists($mcinstall)) {
    throw new Exception("Autoload is not found Contact Webmestre: support@magix-cms.com");
    exit;
} else {
    require $magixglobal;
    require $mcinstall;
}
$loaderFilename = '../lib/loaderIniclass.php';
if (!file_exists($loaderFilename)) {
    print "<p>Loader is not found<br />Contact Support Magix CMS: support@magix-cms.com</p>";
    exit;
} else {
    require $loaderFilename;
}
magixglobal_Autoloader::register();