public function url()
    {
        $args = func_get_args();
        $controller = array_shift($args);

        $url = $this->urlBuilder->createUrl($controller, $args);

        if ($url === false) {
            return $controller;
        } else {
            return $url;
        }
    }
public function url()
    {
        $args = func_get_args();
        $controller = array_shift($args);

        $url = $this->urlBuilder->createUrl($controller, $args);

        if ($url === false) {
            return $controller;
        } else {
            return $url;
        }
    }
public function url ( ) { $ args = func_get_args ( ) ; $ controller = array_shift ( $ args ) ; $ url = $ this -> urlBuilder -> createUrl ( $ controller , $ args ) ; if ( $ url === false ) { return $ controller ; } else { return $ url ; } }
Generates URL by known controller's syntax and optional arguments
This should be used inside templates only

@return string
Generates URL by known controller s syntax and optional arguments This should be used inside templates only