0
내 프로젝트에 cakephp 디버그 플러그인을 구현합니다. 내 appcontroller.php 파일에서 은 내가CakePhp cakesession이 cake php 디버그 키트와 함께 작동하지 않습니다.
var $helpers = array('Html', 'Form', 'Paginator', 'Js', 'Session');
public $components = array('DebugKit.Toolbar');
and in before filter i implement
function beforeFilter() {
if ($this->Session->check('GlobalFields')==false) {
$this->Session->write('GlobalFields.tbl_assets.template_information_global', '');
$this->Session->write('GlobalFields.tbl_assets.hilitelibrary', '');
$this->Session->write('GlobalFields.tbl_assets.hilitesortedby', '');
$this->Session->write('GlobalFields.tbl_assets.sc_url_prefix', '');
}
}
but it showing error
Fatal error: Call to a member function check() on a non-object.
and i check that debug($this->Session) returns null.
if i remove public $components = array('DebugKit.Toolbar'); then its run correctly.
but i want to implement that debugkit with session.
날이 문제를 해결하는 데 도움이 바랍니다 추가 할 수 있습니다. 당신이 SessionComponent 포함하는 기본값을 재정의
public $components = array('DebugKit.Toolbar');
: 여기 무슨 일
좋은 주인, 나는 결코 그것을 얻지 않을 것입니다. 감사! – zmonteca
대장 감사합니다 :) –