16
13

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

EC-CUBE3のデバッグモードへの変更の仕方

Last updated at Posted at 2015-05-06

デバッグモードとは

EC-CUBE3では、デフォルトで、開発者向けのツールやデバッグ情報などを表示する機能を持っています。
運用を開始する際には、デバッグモードを無効にしないといけませんが、開発中は是非有効にしてください。
きっと、開発者の手助けになるでしょう。

変更の仕方

html/index.phpを書き換えるだけ!
Applicationに設定を渡してあげれば、デバッグモードで開発ができます。
設定は、 array('env' => 'dev') です。

# before
<?php

require_once __DIR__.'/../vendor/autoload.php';

$app = new Eccube\Application();
$app->run();

# after
<?php

require_once __DIR__.'/../vendor/autoload.php';

$app = new Eccube\Application(array(
    'env' => 'dev',
));
$app->run();

16
13
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
16
13

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?