protected final function load($lib, $autu = TRUE) { if (empty($lib)) { trigger_error("加载类库名不能为空!!"); } else { if ($autu === TRUE) { return \zldFramework\zldAppBase\zldAppBase::$_lib[$lib]; } else { return \zldFramework\zldAppBase\zldAppBase::newLib($lib); } } }
<?php //use \zldFramework; /* * To change this template, choose Tools | Templates * and open the template in the editor. */ defined('ZLD_FRAMEWORK') or define('ZLD_FRAMEWORK', dirname(__FILE__)); require dirname(__FILE__) . "/system/zldAppBase.php"; $config = (require dirname(__FILE__) . '/system/config/config.php'); $app = \zldFramework\zldAppBase\zldAppBase::getInstance(); $app::run($config);