메뉴얼 보며 회원가입 만들다가 막혀서 질문드립니다.
가입일자 입력시 기존에는 now() 사용했는데
$this->load->helper('date');
$datestring = '%Y-%m-%d %H:%i:%s';
$regedit = mdate($datestring);
오류가 나네요
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: time
Filename: member/add_pop.php
Line Number: 72
Backtrace:
File: D:\sublime\mkboard\application\controllers\admin\member\add_pop.phpLine: 72Function: _error_handler
File: D:\sublime\mkboard\application\controllers\admin\member\add_pop.phpLine: 17Function: add
File: D:\sublime\mkboard\index.phpLine: 292Function: require_once
A PHP Error was encountered
Severity: Warning
Message: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Tokyo' for '9.0/no DST' instead
Filename: helpers/date_helper.php
Line Number: 119
Backtrace:
File: D:\sublime\mkboard\application\controllers\admin\member\add_pop.phpLine: 72Function: mdate
File: D:\sublime\mkboard\application\controllers\admin\member\add_pop.phpLine: 17Function: add
File: D:\sublime\mkboard\index.phpLine: 292Function: require_once
|
ci해야지 맘만먹다 이제 시작하는데 모든게 생소합니다^^
|
http://www.codeigniter-kr.org/bbs/view/etc_qna?idx=3318
php설정문제였네요
몇시간동안 별짓을 다해봤는데 ㅠㅠ