Ejemplo n.º 1
0
 /**
  * Toupti constructor
  * @todo throw TouptiException if not instance of Route (wrong path)
  */
 public function __construct($conf = array())
 {
     parent::__construct($conf);
     if (isset($this->conf['route'])) {
         include $this->conf['route'];
         $this->route = $route;
         // throw TouptiException if not instance of Route
         if (!$this->route instanceof Route) {
             throw new TouptiException("Unable to load route from {$this->conf['route']}.");
         }
     } else {
         $this->route = new Route();
     }
 }