final public function url($module, $controller = null, $action = null, array $params = array(), $hash = null) {
        $module = ucfirst(Util::hyphenToCamel($module));
        $moduleOptions = engineGet('config', 'modules', $module, false);
        $module = (isset($moduleOptions['alias'])) ? $moduleOptions['alias'] : $module;

        $return = Util::camelToHyphen($module);
        if ($controller)
            $return .= '/' . Util::camelToHyphen($controller);
        if ($action)
            $return .= '/' . Util::camelToHyphen($action);
        if (!empty($params))
            $return .= str_replace('//', '/' . urlencode(' ') . '/', '/' . join('/', $this->encodeParams($params)));
        if ($hash)
            $return .= '#' . $hash;

        return engineGet('serverPath') . $return;
    }
final public function url($module, $controller = null, $action = null, array $params = array(), $hash = null) {
        $module = ucfirst(Util::hyphenToCamel($module));
        $moduleOptions = engineGet('config', 'modules', $module, false);
        $module = (isset($moduleOptions['alias'])) ? $moduleOptions['alias'] : $module;

        $return = Util::camelToHyphen($module);
        if ($controller)
            $return .= '/' . Util::camelToHyphen($controller);
        if ($action)
            $return .= '/' . Util::camelToHyphen($action);
        if (!empty($params))
            $return .= str_replace('//', '/' . urlencode(' ') . '/', '/' . join('/', $this->encodeParams($params)));
        if ($hash)
            $return .= '#' . $hash;

        return engineGet('serverPath') . $return;
    }
final public function url ( $ module , $ controller = null , $ action = null , array $ params = array ( ) , $ hash = null ) { $ module = ucfirst ( Util :: hyphenToCamel ( $ module ) ) ; $ moduleOptions = engineGet ( 'config' , 'modules' , $ module , false ) ; $ module = ( isset ( $ moduleOptions [ 'alias' ] ) ) ? $ moduleOptions [ 'alias' ] : $ module ; $ return = Util :: camelToHyphen ( $ module ) ; if ( $ controller ) $ return .= '/' . Util :: camelToHyphen ( $ controller ) ; if ( $ action ) $ return .= '/' . Util :: camelToHyphen ( $ action ) ; if ( ! empty ( $ params ) ) $ return .= str_replace ( '//' , '/' . urlencode ( ' ' ) . '/' , '/' . join ( '/' , $ this -> encodeParams ( $ params ) ) ) ; if ( $ hash ) $ return .= '#' . $ hash ; return engineGet ( 'serverPath' ) . $ return ; }
Fetches the relative path to a resource
@param string $module
@param string $controller
@param string $action
@param array $params
@param string $hash
@return string
Fetches the relative path to a resource