Beispiel #1
0
 public function action_index($username)
 {
     $owner = Owner::findOne($username);
     if (!$owner) {
         throw new HttpNotFoundException();
     }
     $this->title = $owner['_id'];
     $this->page_title = $owner['_id'];
     if ($owner['vacation']) {
         $this->page_title .= ' <span class="glyphicon glyphicon-plane"></span>';
     }
     $this->template->content = View::forge('pets/index', ['owner' => $owner]);
 }