Pop\Mvc\Controller::setViewPath PHP Method

setViewPath() public method

Set the response object
public setViewPath ( string $viewPath ) : Controller
$viewPath string
return Controller
    public function setViewPath($viewPath)
    {
        $this->viewPath = $viewPath;
        return $this;
    }

Usage Example

Example #1
0
 public function testSetAndGetViewPath()
 {
     $c = new Controller();
     $c->setViewPath('/admin');
     $this->assertEquals('/admin', $c->getViewPath());
     $this->assertNull($c->getView());
 }