すべて揃っていると思います。ただし、支払いコントローラーで「needs: ['shipping', 'checkout']」を使用することはできません。単に見つからないためです。次のエラーを参照してください。
Error while loading route: Error: <appkit@controller:article/payment::ember1670> needs [ controller:checkout, controller:shipping ] but they could not be found
おもしろいのは、チェックアウトプロセスの一部であるため、以前にこれらのルートを訪れたことです. ルーターを見てください:
this.resource('articles', {path: '/product'}, function() { // to fill the articles navigation slider
this.resource('article', {path: '/:article_id'}, function() { // article information slider
// (...)
// we have always an active article, thats why the shipping is underneath 'article'
this.route('shipping', {path: '/verzending'});
this.route('checkout', {path: '/betaalwijze'});
this.route('payment', {path: '/afrekenen'});
});
});
だから私は訪問します:shipping
その後checkout
、payment
エラーが発生します。それらのコントローラーはすべて ObjectController です。
フォルダ構造:
出荷コントローラーでneeds
は、機能する ArrayController を含めるために使用します。おそらく、それらは ObjectControllers である必要がありますか?
ヒントをお寄せいただきありがとうございます!
編集:それらを作成しEmber.Controller
ても効果はありません。