質問 > フロント機能 > 『新着情報』ブロックの複製 |
フロント機能
フラット表示 | 前のトピック | 次のトピック |
投稿者 | スレッド |
---|---|
dee |
投稿日時: 2018/5/28 13:35
対応状況: −−−
|
新米 登録日: 2018/5/14 居住地: 投稿: 7 |
Re: 『新着情報』ブロックの複製 お手数おかけ致します。
下記が記載になります。よろしくお願い致します。 ・nav.yml.dist - id: news name: 新着情報管理 url : admin_content_news ↓複製し、名称を2つ目のものに変更 - id: 2つ目名称 name: 2つ目名称管理 url : admin_content_2つ目名称 ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー ・EccubeServiseProvider.php $app['eccube.repository.news'] = $app->share(function () use ($app) { return $app['orm.em']->getRepository('Eccube\Entity\News'); }); ↓複製し、名称を2つ目のものに変更 $app['eccube.repository.2つ目名称'] = $app->share(function () use ($app) { return $app['orm.em']->getRepository('Eccube\Entity\2つ目名称'); }); ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー ・FrontControllerProvider.php $c->match('/block/news', '\Eccube\Controller\Block\NewsController::index')->bind('block_news'); ↓複製し、名称を2つ目のものに変更 $c->match('/block/2つ目名称', '\Eccube\Controller\Block\2つ目名称Controller::index')->bind('block_2つ目名称'); ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー ・AdminControllerProvider.php $c->match('/content/news', '\Eccube\Controller\Admin\Content\NewsController::index')->bind('admin_content_news'); $c->match('/content/news/new', '\Eccube\Controller\Admin\Content\NewsController::edit')->bind('admin_content_news_new'); $c->match('/content/news/{id}/edit', '\Eccube\Controller\Admin\Content\NewsController::edit')->assert('id', '\d+')->bind('admin_content_news_edit'); $c->delete('/content/news/{id}/delete', '\Eccube\Controller\Admin\Content\NewsController::delete')->assert('id', '\d+')->bind('admin_content_news_delete'); $c->put('/content/news/{id}/up', '\Eccube\Controller\Admin\Content\NewsController::up')->assert('id', '\d+')->bind('admin_content_news_up'); $c->put('/content/news/{id}/down', '\Eccube\Controller\Admin\Content\NewsController::down')->assert('id', '\d+')->bind('admin_content_news_down'); ↓複製し、名称を2つ目のものに変更 $c->match('/content/2つ目名称', '\Eccube\Controller\Admin\Content\2つ目名称Controller::index')->bind('admin_content_2つ目名称'); $c->match('/content/2つ目名称/new', '\Eccube\Controller\Admin\Content\2つ目名称Controller::edit')->bind('admin_content_2つ目名称_new'); $c->match('/content/2つ目名称/{id}/edit', '\Eccube\Controller\Admin\Content\2つ目名称Controller::edit')->assert('id', '\d+')->bind('admin_content_2つ目名称_edit'); $c->delete('/content/2つ目名称/{id}/delete', '\Eccube\Controller\Admin\Content\2つ目名称Controller::delete')->assert('id', '\d+')->bind('admin_content_2つ目名称_delete'); $c->put('/content/2つ目名称/{id}/up', '\Eccube\Controller\Admin\Content\2つ目名称Controller::up')->assert('id', '\d+')->bind('admin_content_2つ目名称_up'); $c->put('/content/2つ目名称/{id}/down', '\Eccube\Controller\Admin\Content\2つ目名称Controller::down')->assert('id', '\d+')->bind('admin_content_2つ目名称_down'); |
フラット表示 | 前のトピック | 次のトピック |
題名 | 投稿者 | 日時 |
---|---|---|
『新着情報』ブロックの複製 | dee | 2018/5/25 13:03 |
Re: 『新着情報』ブロックの複製 | umebius | 2018/5/25 13:16 |
Re: 『新着情報』ブロックの複製 | dee | 2018/5/25 14:21 |
Re: 『新着情報』ブロックの複製 | umebius | 2018/5/25 14:24 |
Re: 『新着情報』ブロックの複製 | dee | 2018/5/25 16:44 |
Re: 『新着情報』ブロックの複製 | umebius | 2018/5/26 16:15 |
Re: 『新着情報』ブロックの複製 | dee | 2018/5/28 13:10 |
Re: 『新着情報』ブロックの複製 | umebius | 2018/5/28 13:12 |
» Re: 『新着情報』ブロックの複製 | dee | 2018/5/28 13:35 |