public function __construct($params = NULL, $app = NULL) { parent::__construct($params, $app); $this->task = new model\Task(\Stream\App::getConnection()); $this->templates->addFolder('task', __DIR__ . DIRECTORY_SEPARATOR . 'templates'); $this->templates->addData(['scripts' => array_merge($this->_scripts, ['/js/tasks.js'])]); }
public function __construct($params = NULL, $app = NULL) { $this->_stylesheets[] = 'https://fonts.googleapis.com/css?family=Open+Sans'; $this->_stylesheets[] = '/css/styles.css'; $this->_scripts = array_merge($this->_scripts, ['/components/angular-sanitize/angular-sanitize.min.js', '/components/wiz-markdown/wizMarkdown/wizMarkdown.js', "/js/app.js", '/js/tasks.js', '/js/login.js']); parent::__construct($params, $app); $this->templates->addFolder('stream', __DIR__ . DIRECTORY_SEPARATOR . 'templates'); }
public function __construct($params = NULL, \Stream\App $app = NULL) { parent::__construct($params, $app); $this->user = new User(\Stream\App::getConnection()); $this->u = new Decorators\User(\Stream\App::getConnection()); }