> 管理機能 > ポイントプラグインに関してのご質問です。 |
管理機能
フラット表示 | 前のトピック | 次のトピック |
投稿者 | スレッド |
---|---|
umebius |
投稿日時: 2016/10/5 16:15
対応状況: −−−
|
神 登録日: 2016/7/22 居住地: 投稿: 2085 |
Re: ポイントプラグインに関してのご質問です。 class TopController
{ public function index(Application $app) { $point = null; if($app->isGranted('ROLE_USER')){ $point = $app['eccube.plugin.point.repository.pointcustomer']->getLastPointById($app->user()->getId()); } return $app->render('index.twig', array('point' => $point)); } } コントローラー部分を以上に変えて、 表示部分をpoint.currentではなく、単にpointにしたらいかがでしょうか。
|
フラット表示 | 前のトピック | 次のトピック |
題名 | 投稿者 | 日時 |
---|---|---|
ポイントプラグインに関してのご質問です。 | konpei | 2016/9/27 0:13 |
Re: ポイントプラグインに関してのご質問です。 | umebius | 2016/9/30 8:18 |
Re: ポイントプラグインに関してのご質問です。 | konpei | 2016/10/1 6:58 |
Re: ポイントプラグインに関してのご質問です。 | umebius | 2016/10/4 1:48 |
Re: ポイントプラグインに関してのご質問です。 | konpei | 2016/10/5 15:38 |
» Re: ポイントプラグインに関してのご質問です。 | umebius | 2016/10/5 16:15 |
Re: ポイントプラグインに関してのご質問です。 | umebius | 2016/10/5 16:23 |
Re: ポイントプラグインに関してのご質問です。 | konpei | 2016/10/5 17:59 |
Re: ポイントプラグインに関してのご質問です。 | umebius | 2016/10/5 20:41 |