코드이그나이터 3.1.3에서 HMVC 오류 대응
2017.03.01 19:20
소스1 : http://www.cikorea.net/bbs/view/tip?idx=16509&page=1&view_category=&lists_style=
소스2: http://stackoverflow.com/questions/41557760/codeigniter-hmvc-object-to-array-error?answertab=votes#tab-top
application/third_party/MX/Loader.php , line 300의 주석친 내용에서 주석 안친 내용으로 수정
//return $this->_ci_load(array('_ci_view' => $view, '_ci_vars' => $this->_ci_object_to_array($vars), '_ci_return' => $return));
if
(method_exists(
$this
,
'ci_object_to_array'
))
{
return
$this
->_ci_load(
array
(
'_ci_view'
=>
$view
,
'_ci_vars'
=>
$this
->_ci_object_to_array(
$vars
),
'_ci_return'
=>
$return
));
}
else
{
return
$this
->_ci_load(
array
(
'_ci_view'
=>
$view
,
'_ci_vars'
=>
$this
->_ci_prepare_view_vars(
$vars
),
'_ci_return'
=>
$return
));
}
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
» | 코드이그나이터 3.1.3에서 HMVC 오류 대응 | 꿈돌이 | 2017.03.01 | 467 |