Exemplo n.º 1
0
 function __construct($ctn)
 {
     parent::__construct($ctn);
     // debugger
     $this->pebug = pebug::Instance();
     $this->pebug->log("view::__construct()");
 }
Exemplo n.º 2
0
 function __construct($ctn)
 {
     // get pebug
     $this->pebug = pebug::Instance();
     $this->pebug->log("database::__construct()");
     // container itself
     $this->ctn = $ctn;
 }
Exemplo n.º 3
0
 function __construct($ctn)
 {
     // generate app hash
     $this->_appHash = md5($ctn['pathApp']);
     // get pebug
     $this->pebug = pebug::Instance();
     $this->pebug->log("bootstrap::__construct()");
     // ctn itself
     $this->ctn = $ctn;
     // cache module
     $this->cache = $ctn['cache'];
     // session module
     $this->mem = $ctn['session'];
     // symfony request object
     $this->request = $ctn['request'];
     // set various boot vars
     $this->_host = $_SERVER['HTTP_HOST'];
 }
Exemplo n.º 4
0
 function __construct($ctn)
 {
     // get pebug
     $this->pebug = pebug::Instance();
     $this->pebug->log("controller::__construct()");
     // container itself
     $this->ctn = $ctn;
     // create new view
     $this->view = new view($ctn);
     // session module
     $this->mem = $this->ctn['session'];
     // load basic data
     $this->loadLayout();
     // request object
     $this->request = $this->ctn['request'];
     // check if install is needed
     $this->install($ctn);
 }