Example #1
0
 /**
  * This returns the path to the controller and the function within it
  * that have been selected. This is without any parameters and includes
  * the set root path at the beginning.
  */
 public function getPath()
 {
     $path = Flexi::getRootURI();
     if ($this->controller !== null) {
         $path .= $this->controller;
         if ($this->method !== null) {
             $path .= '/' . $this->method;
         }
     }
     return $path;
 }