Exemplo n.º 1
0
 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');
     });
 }
Exemplo n.º 2
0
 public function init($params = null)
 {
     header('Content-Type: application/json');
     parent::init();
 }