dispatch() public method

Dispatch the controller based on the action
public dispatch ( string $action = 'index' ) : Controller
$action string
return Controller
Example #1
0
 public function testDispatchException()
 {
     $this->setExpectedException('Pop\\Mvc\\Exception');
     $c = new Controller();
     $c->dispatch();
 }