我需要 Magento 2x 中的页面 url,包括我的自定义模块控制器中的键。 这里有类似的东西,但这是针对 magento 1x 的。我需要 magento 2x。
对于 magento 1x:Mage::helper('adminhtml')->getUrl('adminhtml/framexport/index')但我需要类似的 magento 2x。
ionic 3 app的ngx翻译对我不起作用。下面是我的代码:
app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { ErrorHandler, NgModule } from '@angular/core';
import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
import { HttpModule,Http } from '@angular/http';
import { IonicStorageModule } from '@ionic/storage';
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
import { MyApp } from './app.component';
import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
export function createTranslateLoader(http: Http) {
return new TranslateHttpLoader(http, './assets/i18n/', '.json');
}
@NgModule({ …Run Code Online (Sandbox Code Playgroud)