Example #1
0
 /**
  * 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();
 }
Example #2
0
 /**
  * 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;
 }
Example #3
0
 /**
  * Set the default registry instance to a specified instance.
  *
  * @return void
  */
 public static function setInstance(PPI_Exception $instance)
 {
     self::$_instance = $instance;
 }