Pop\Mvc\Controller::setErrorAction PHP 메소드

setErrorAction() 공개 메소드

Set the error action
public setErrorAction ( string $error ) : Controller
$error string
리턴 Controller
    public function setErrorAction($error)
    {
        $this->errorAction = $error;
        return $this;
    }

Usage Example

예제 #1
0
 public function testSetAndGetErrorAction()
 {
     $c = new Controller();
     $c->setErrorAction('myerror');
     $this->assertEquals('myerror', $c->getErrorAction());
 }