Pop\Mvc\Controller::getView PHP Method

getView() public method

Get the view object
public getView ( ) : View
return View
    public function getView()
    {
        return $this->view;
    }

Usage Example

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