Example #1
0
 public function __construct()
 {
     parent::__construct();
     $this->db = jream\Registry::fetch('db');
 }
Example #2
0
<?php

require 'lib/jream/autoload.php';
require 'lib/jream/hash.php';
new \jream\Autoload('lib/jream');
jream\Registry::set('db', $db);
require 'system/config/config.php';
$bootstrap = new \jream\mvc\Bootstrap();
$bootstrap->setPathRoot(getcwd());
$bootstrap->setControllerDefault('index');
//$bootstrap->setPathController('');
$bootstrap->init();