CI 묻고 답하기

제목 초보입니다. date관련 질문드립니다.
글쓴이 가마니 작성시각 2016/02/22 19:33:52
댓글 : 1 추천 : 0 스크랩 : 0 조회수 : 17246   RSS

메뉴얼 보며 회원가입 만들다가 막혀서 질문드립니다.

가입일자 입력시 기존에는 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해야지 맘만먹다 이제 시작하는데 모든게 생소합니다^^

 다음글 ci가 스니핑에 대해서 안전한가요? (1)
 이전글 php codeigniter 에서 redirect와 j... (8)

댓글

가마니 / 2016/02/22 20:03:41 / 추천 0

http://www.codeigniter-kr.org/bbs/view/etc_qna?idx=3318

php설정문제였네요

몇시간동안 별짓을 다해봤는데 ㅠㅠ