Last active
April 18, 2016 02:04
-
-
Save kurozumi/64e0d8cf12a08e44fc25409b9abc3aa9 to your computer and use it in GitHub Desktop.
【EC-CUBE3】プラグインを有効化した時にブロックを生成するプラグインの作り方
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* This file is part of the SampleBlock | |
* | |
* Copyright (C) 2016 kurozumi | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
*/ | |
namespace Plugin\SampleBlock\Controller\Block; | |
use Eccube\Application; | |
use Symfony\Component\HttpFoundation\Request; | |
class SampleBlockController | |
{ | |
/** | |
* SampleBlock画面 | |
* | |
* @param Application $app | |
* @param Request $request | |
* @return \Symfony\Component\HttpFoundation\Response | |
*/ | |
public function index(Application $app, Request $request) | |
{ | |
return $app['view']->render("Block/sample_block.twig", array( | |
// add parameter... | |
)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment