/** * Zorg_Application's constructor : it configures the application with the * configuration array and defines mains Zorg's components * @param array $config Configuration array */ public function __construct($config = NULL) { if (isset($config)) { $config = (require $config); $this->configure($config); } if ($this->autoLoadingEnabled) { Zorg_Loader::getInstance()->enableAutoLoading(); } $this->_dispatcher = Zorg_Dispatcher::getInstance(); Zorg::setApp($this); }
public static function setApp($app) { self::$_app = $app; }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title><?php echo Zorg::getApp()->name; ?> </title> <?php echo $zorgStylesheet; ?> <?php echo $zorgScript; ?> </head> <body> <?php echo $zorgContent; ?> </body> </html>