Pop\Mvc\Controller::getViewPath PHP Method

getViewPath() public method

Get the view path
public getViewPath ( ) : string
return string
    public function getViewPath()
    {
        return $this->viewPath;
    }

Usage Example

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