Skip to content

Instantly share code, notes, and snippets.

@kurozumi
Created September 1, 2015 12:50
Show Gist options
  • Save kurozumi/21b9cb2867880e3b7f98 to your computer and use it in GitHub Desktop.
Save kurozumi/21b9cb2867880e3b7f98 to your computer and use it in GitHub Desktop.
【EC-CUBE3】新規ページ作成方法。サービスプロバイダの作成
<?php
namespace Plugin\Pages\ServiceProvider;
use Eccube\Application;
use Silex\Application as BaseApplication;
use Silex\ServiceProviderInterface;
class PagesServiceProvider implements ServiceProviderInterface
{
public function register(BaseApplication $app)
{
$app->match('/sample',
'\Plugin\Pages\Controller\PagesController::sample')
->bind('sample');
}
public function boot(BaseApplication $app)
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment