BadRequestException

Action not allowed.

Source file

File: D:\...\examples\fifteen\app\components\FifteenControl.php   Line: 55

Line 48:        }
Line 49:    
Line 50:    
Line 51:    
Line 52:        public function handleClick($x$y)
Line 53:        {
Line 54:            if (!$this->isClickable($x$y)) {
Line 55:                throw new /*Nette\Application\*/BadRequestException('Action not allowed.');
Line 56:            }
Line 57:    
Line 58:            $this->move($x$y);
Line 59:            $this->round++;
Line 60:            $this->onAfterClick($this);
Line 61:    
Line 62:            if ($this->order == range(0$this->width $this->width 1)) {

Call stack

  1. <PHP inner-code> FifteenControl-> handleClick (arguments )

  2. Application/PresenterComponent.php (109) source   call_user_func_array (arguments )

  3. Application/PresenterComponent.php (209) source   PresenterComponent-> tryCall (arguments )

  4. Application/Presenter.php (292) source   PresenterComponent-> signalReceived (arguments )

  5. Application/Presenter.php (181) source   Presenter-> processSignal ()

  6. Application/Application.php (158) source   Presenter-> run (arguments )

  7. app/bootstrap.php (32) source   Application-> run ()

  8. document_root/index.php (10) source   require (arguments )

Environment

Exception

HTTP request

HTTP response