code: private function _getRoute()
      {
          $action = str_replace( 'Action', '', $this->action->getName() );
          $action = explode( '\\', $action );
          $action = strtolower( $action[ 0 ] );
  
          $cls = str_replace( 'Controller', '', get_class( $this ) );
          $cls = strtolower( $cls );
  
          $path = explode( '\\', $cls );
          $path = $path[ count( $path ) - 1 ] . '/' . $action;
  
          if ( $this->action->hasParams() )
          {
              foreach ( $this->action->getParams() as $param )
              {
                  $path .= '/' . $param;
              }
          }
  
          return $path;
      }
docs: Helper method to work out the current route.
  
  @return string the route