function __autoload($class_name) { AutoLoader::load($class_name); }
<h1>Nette\Loaders\SimpleLoader test</h1> <pre> <?php require_once '../../Nette/Loaders/SimpleLoader.php'; /*use Nette\Debug;*/ set_include_path('../../'); $loader = new SimpleLoader(); $loader->register(); /**/ AutoLoader::load('Nette\\Debug'); /**/ Debug::dump('class Nette\\Debug successfully loaded');
function __autoload($class_name) { try { AutoLoader::load($class_name); } catch (Exception $e) { throw $e; } }
/** * Generate a DOCX file * * @category Phpdocx * @package create * @copyright Copyright (c) 2009-2011 Narcea Producciones Multimedia S.L. * (http://www.2mdc.com) * @license LGPL * @version 1.0 * @link http://www.phpdocx.com * @since File available since Release 1.0 */ error_reporting(E_ALL & ~E_NOTICE); require_once dirname(__FILE__) . '/AutoLoader.inc'; AutoLoader::load(); /** * Main class. Methods and vars to generate a DOCX file * * @category Phpdocx * @package create * @copyright Copyright (c) 2009-2011 Narcea ProduCiones Multimedia S.L. * (http://www.2mdc.com) * @license http://www.phpdocx.com/wp-content/themes/lightword/pro_license.php * @version 1.0 * @link http://www.phpdocx.com * @since Class available since Release 1.0 */ class CreateDocx { const NAMESPACEWORD = 'w';