private function needsApp()
 {
     $this->app = AppUtil::getActiveApp($this->user);
     // $this->app->adjustHouseAdNetwork(null, null);
     if ($this->app === null) {
         redirect('/apps/apps');
     }
     $crumb = array('text' => $this->app->name, 'link' => '/apps/oneApp?aid=' . $this->app->id);
     $this->breadcrumbs[] = $crumb;
     $this->subtitle = "<span style='display:inline-block;padding-top:7px;padding-right:7px'>" . $this->app->name . "</span><span style='padding-left:10px;font-size:11px;color:#666'>SDK Key:" . $this->app->id . "</span>";
     $this->needSwitcher = true;
     $this->switcherText = 'Switch App';
     $switchList = array();
     foreach (AppUtil::getAppsByUid($this->user->id) as $app) {
         if ($app->id != $this->app->id) {
             $switchList[] = $app;
         }
     }
     $this->switcherList = $switchList;
 }