public static function toMenuNav($navId, array $route)
    {
        $menu = Yii::$app->menu->find()->where([Menu::FIELD_NAVID => $navId])->with(['hidden'])->one();
        
        return static::toMenuNavItem($menu->id, $route);
    }
public static function toMenuNav($navId, array $route)
    {
        $menu = Yii::$app->menu->find()->where([Menu::FIELD_NAVID => $navId])->with(['hidden'])->one();
        
        return static::toMenuNavItem($menu->id, $route);
    }
public static function toMenuNav ( $ navId , array $ route ) { $ menu = Yii :: $ app -> menu -> find ( ) -> where ( [ Menu :: FIELD_NAVID => $ navId ] ) -> with ( [ 'hidden' ] ) -> one ( ) ; return static :: toMenuNavItem ( $ menu -> id , $ route ) ; }
Create an url to a cms page based on the nav id.

This method uses the language independent navId which is displayed in the cms page tree.

@param integer $navId The nav id of the given page which is the base path for the generated url.
@param array $route An array with a route and optional params `['/module/controller/action', 'param' => 'bar]`.
@return string The url with the base path from the nav id and the appended route.
@since 1.0.4
Create an url to a cms page based on the nav id .