CakePHP2의 디버그 툴바를 프리치로 한다

우선 작다.

+버튼을 누르면 크게 할 수 있습니다만, 원래 페이지 우측 상부에 배치되는 형편, 오프 캔버스 메뉴의 개폐 버튼과 겹쳐 눌러 힘들거나.
만약 이것이 CakePHP3의 디버그 툴바와 같이 크고, 페이지 우측 하단에 배치되게 되면 편리하다고 생각하지 않습니까?


그런 「만약」을 실현한다 PrettyDebug 라고 하는 플러그인을 최근(이라고 해도 반년 이상전) 만들었으므로 소개하겠습니다.
설치 절차
플러그인 얻기
Composer에서 설치할 수 있습니다.
composer.json
{
"require-dev": {
"cakephp/debug_kit": "^2.2",
"chinpei215/cakephp-pretty-debug": "^0.1"
}
}
PrettyDebug 는 DebugKit의 외관을 바꾸는 플러그인이므로 DebugKit 본체의 설치도 잊지 마세요.
Composer 는 사용하고 싶지 않다는 분은 htps : // 기주 b. 코 m / Chinpei 215 / Kake phpp ppy ty-bu g / Repease s 에서 zip 을 떨어뜨릴 수도 있습니다. 압축을 풀면 PrettyDebug라는 디렉토리 이름으로 plugins 또는 app/Plugin 디렉토리에 배치하십시오.
플러그인 사용
app/Config/bootstrap.php
내에서 PrettyDebug 플러그인을 활성화하십시오.app/Config/bootstrap.php
if (Configure::read('debug') > 0) {
CakePlugin::load('DebugKit');
CakePlugin::load('PrettyDebug');
}
구성 요소 활성화
마지막으로 AppController에서 DebugKit.Toolbar 구성 요소와 함께 PrettyDebug.PrettyDebug 구성 요소를 사용하도록 설정합니다.
app/Controller/AppController.php
public function __construct($request = null, $response = null) {
if (CakePlugin::loaded('DebugKit')) {
$this->components[] = 'DebugKit.Toolbar';
if (CakePlugin::loaded('PrettyDebug')) {
$this->components[] = 'PrettyDebug.PrettyDebug';
}
}
parent::__construct($request, $response);
}
이것으로 설치가 완료됩니다.
바로 화면을 표시해 보세요. 화면의 오른쪽 하단에 Cake 아이콘이 멋진 얼굴로 나타납니다.
1
CakePHP2의 디버그 툴바를 프리치로 하는 플러그인 PrettyDebug . 여러분도 꼭 사용해 보세요.
DebugKit을 개발 환경에서만 사용하도록 설정하는 좋은 방법이 생각나지 않습니다. 이것으로 좋습니까?

Reference
이 문제에 관하여(CakePHP2의 디버그 툴바를 프리치로 한다), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/chinpei215/items/f3b66baaa50c6955a0d9텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)