Beispiel #1
0
<?php

require '../jream/autoload.php';
use jream\Autoload, jream\Database, jream\Exception, jream\Form, jream\Hash, jream\Output, jream\Registry, jream\Session;
new Autoload('../jream');
new Input();
$data = 'love';
Registry::set('life', $data);
Session::start();
Session::set('name', 'jesse');
Session::get('name');
Hash::create('md5', 'Hi Mom');
Output::success('test');
Beispiel #2
0
 /**
  * __construct - Include database object if defined
  */
 public function __construct()
 {
     $this->db = Registry::get('db');
 }
Beispiel #3
0
 /**
  * __construct - Required
  */
 public function __construct()
 {
     $this->segments = Registry::get('segments');
     $this->view = Registry::get('view');
     $this->model = Registry::get('model');
 }
Beispiel #4
0
 public function __construct()
 {
     parent::__construct();
     $this->db = \jream\Registry::fetch('db');
 }
Beispiel #5
0
 private function _initView()
 {
     $view = new View();
     $view->setPath($this->_pathView);
     Registry::set('view', $view);
 }