0
1

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.

cakephp2でのdebugkitの設定

0
Posted at

project_name/pluginsで以下を実行

git clone --single-branch --branch 2.2 git://github.com/cakephp/debug_kit.git DebugKit

project_name/app/Controller/AppController.php

class AppController extends Controller {
	public function beforeFilter() {
		if (Configure::read('debug') >= 2) {
			$this->Toolbar = $this->Components->load('DebugKit.Toolbar');
		}
	}
}

project_name/app/View/Layouts/default.ctp

	<?php echo $this->element('sql_dump'); ?>//を削除する
0
1
1

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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?