/** * Call the dispatch process for the current set helper * * @return void */ function dispatch() { if ($this->_helper->init() === false) { PPI_Exception::show_404('Invalid dispatch process'); } $this->_helper->dispatch(); }
/** * Run the init() method and check for a misconfigured baseUrl from the config vs the current url * Check for a controller to dispatch by using the _Abstract version of checkControllers() * * @return boolean */ function init() { if ($this->_router !== null) { $this->_router->init(); } // We found a true match for bad base url if ($this->checkBadBaseUrl() === true) { PPI_Exception::show_404(); } if ($this->checkControllers() === false) { PPI_Exception::show_404(); } return true; }