Ejemplo n.º 1
0
 /**
  * Constructor
  *
  */
 protected function __construct()
 {
     $config['_class'] = array('Cola_Router' => COLA_DIR . '/Router.php', 'Cola_Model' => COLA_DIR . '/Model.php', 'Cola_View' => COLA_DIR . '/View.php', 'Cola_Controller' => COLA_DIR . '/Controller.php', 'Cola_Com' => COLA_DIR . '/Com.php', 'Cola_Com_Widget' => COLA_DIR . '/Com/Widget.php', 'Cola_Exception' => COLA_DIR . '/Exception.php');
     self::$config = new Cola_Config($config);
     self::$_config =& self::$config->reference();
     Cola::registerAutoload();
 }
Ejemplo n.º 2
0
 /**
  * Constructor
  *
  */
 protected function __construct()
 {
     $this->config = new Cola_Config(array('_class' => array('Cola_Model' => COLA_DIR . '/Model.php', 'Cola_View' => COLA_DIR . '/View.php', 'Cola_Controller' => COLA_DIR . '/Controller.php', 'Cola_Router' => COLA_DIR . '/Router.php', 'Cola_Request' => COLA_DIR . '/Request.php', 'Cola_Response' => COLA_DIR . '/Response.php', 'Cola_Ext_Validate' => COLA_DIR . '/Ext/Validate.php', 'Cola_Exception' => COLA_DIR . '/Exception.php', 'Cola_Exception_Dispatch' => COLA_DIR . '/Exception/Dispatch.php')));
     Cola::registerAutoload();
 }