public function init() { // normaly this would go in your apps init or index file $this->tipsy()->service('User', '\\App\\User'); parent::init(); $this->inject(function ($View, $Request, $Scope, $User) { $Scope->about = $User->data($Request->loc(1)); $View->display('about'); }); }
public function init($params = null) { header('Content-Type: application/json'); parent::init(); }