Severity: Warning
Message: The magic method __get() must have public visibility and cannot be static
Filename: libraries/MY_PageController.php
Line Number: 8
Severity: Warning
Message: The magic method __call() must have public visibility and cannot be static
Filename: libraries/MY_PageController.php
Line Number: 14
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class MY_PageController extends MY_Controller {
function __construct()
{
parent::getInstance();
}
protected function __get($var){
if(isset(parent::$instance->$var)) {
return parent::$instance->$var;
}
}
protected function __call($name, $arguments) {
if(method_exists(parent::$instance,$name))
call_user_func_array(array(parent::$instance, $name), $arguments);
}
}
/* End of file MY_PageController.php */
/* Location: ./system/application/libraries/MY_PageController.php */
php 버젼이 바뀌신것 같은데요.. php 5.3에서는 위와 같은 문법은 오류가 납니다.
php 메뉴얼을 참조해 주세요.
http://www.php.net/manual/en/language.oop5.overloading.php
오류내용도 보면
The magic method __get() must have public visibility and cannot be static
magic 함수는 꼭 필히 public으로 해달라고 말이 있으니 ㅎㅎ 그렇게 고쳐주시는게 맞는거 입니다.
그럼