コード例 #1
0
ファイル: Game.php プロジェクト: Dever4eg/game
 public function ActionForest()
 {
     $forest = Forest::FindByColumn('login', Auth::GetLogin());
     if (isset($_GET['act'])) {
         if ($_GET['act'] == 'find') {
             $forest->Search();
         } elseif ($_GET['act'] == 'chop') {
             $forest->Chop();
         }
         header('location: /game/forest');
     }
     $this->view->forest = $forest;
     $this->view->display('Game/forest');
 }