Example #1
0
 /**
  * Returns the route as a link.
  */
 public function __toString()
 {
     //Website Base
     //$link = Staple_Config::getValue('application', 'public_location');
     //Add Controller
     $link = Staple_Link::urlCase($this->getController()) . '/';
     //Add Action
     $link .= Staple_Link::urlCase($this->getAction());
     //Add Parameters
     if (count($this->params) >= 1) {
         $link .= '/' . implode('/', $this->params);
     }
     return $link;
 }