3 * Prado bootstrap file.
5 * This file is intended to be included in the entry script of Prado applications.
6 * It defines Prado class by extending PradoBase, a static class providing globally
7 * available functionalities that enable PRADO component model and error handling mechanism.
9 * By including this file, the PHP error and exception handlers are set as
10 * PRADO handlers, and an __autoload function is provided that automatically
11 * loads a class file if the class is not defined.
13 * @author Qiang Xue <qiang.xue@gmail.com>
14 * @link https://github.com/pradosoft/prado
15 * @copyright Copyright © 2005-2016 The PRADO Group
16 * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT
21 * Includes the PradoBase class file
23 require_once(dirname(__FILE__).'/PradoBase.php');
26 * Defines Prado class if not defined.
28 if(!class_exists('Prado',false))
33 * @author Qiang Xue <qiang.xue@gmail.com>
37 class Prado extends PradoBase
43 * Registers the autoload function.
44 * Since Prado::autoload will report a fatal error if the class file
45 * cannot be found, if you have multiple autoloaders, Prado::autoload
46 * should be registered in the last.
48 spl_autoload_register(array('Prado','autoload'));
51 * Initializes error and exception handlers
53 Prado::initErrorHandlers();
56 * Includes TApplication class file
58 require_once(dirname(__FILE__).'/TApplication.php');
61 * Includes TShellApplication class file
63 require_once(dirname(__FILE__).'/TShellApplication.php');