Exemplo n.º 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');
Exemplo n.º 2
0
 /**
  * __construct - Include database object if defined
  */
 public function __construct()
 {
     $this->db = Registry::get('db');
 }
Exemplo n.º 3
0
 /**
  * __construct - Required
  */
 public function __construct()
 {
     $this->segments = Registry::get('segments');
     $this->view = Registry::get('view');
     $this->model = Registry::get('model');
 }
Exemplo n.º 4
0
 public function __construct()
 {
     parent::__construct();
     $this->db = \jream\Registry::fetch('db');
 }
Exemplo n.º 5
0
 private function _initView()
 {
     $view = new View();
     $view->setPath($this->_pathView);
     Registry::set('view', $view);
 }