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