original_string: public function actionUrl($action = null, $path = null)
      {
          if ($action === null) {
              $action = $this->action;
          }
  
          $class = get_called_class();
          $uriPath = dirname(dirname(strtolower(str_replace('\\', '/', $class))));
          $controllerName = strtolower(class_basename($class));
  
          $url = $uriPath.'/'.$controllerName.'/'.$action;
          if ($path) {
              $url .= '/'.$path;
          }
  
          return Backend::url($url);
      }
code: public function actionUrl($action = null, $path = null)
      {
          if ($action === null) {
              $action = $this->action;
          }
  
          $class = get_called_class();
          $uriPath = dirname(dirname(strtolower(str_replace('\\', '/', $class))));
          $controllerName = strtolower(class_basename($class));
  
          $url = $uriPath.'/'.$controllerName.'/'.$action;
          if ($path) {
              $url .= '/'.$path;
          }
  
          return Backend::url($url);
      }
code_tokens: public function actionUrl ( $ action = null , $ path = null ) { if ( $ action === null ) { $ action = $ this -> action ; } $ class = get_called_class ( ) ; $ uriPath = dirname ( dirname ( strtolower ( str_replace ( '\\' , '/' , $ class ) ) ) ) ; $ controllerName = strtolower ( class_basename ( $ class ) ) ; $ url = $ uriPath . '/' . $ controllerName . '/' . $ action ; if ( $ path ) { $ url .= '/' . $ path ; } return Backend :: url ( $ url ) ; }
docstring: Returns a URL for this controller and supplied action.
docstring_tokens: Returns a URL for this controller and supplied action .