함수가 어디붙어있는지 찿지를 못하고있습니다
- jjjjrr1
- 4
- 4,328
- 글주소
- 06-29
class CB_Controller extends CI_Controller
.......................................................
public function _remap($method)
{
var_dump("CB_controller _remap :: ", $method, $this->uri->rsegments);
if (method_exists($this, $method)) {
call_user_func_array(array($this, $method), array_slice($this->uri->rsegments, 2));
} else {
if (method_exists($this, '_404')) {
call_user_func_array(array($this, '_404'), array($method));
} else {
show_404(strtolower(get_class($this)) . '/' . $method);
}
}
$this->_load_view();
}
위함수에서 call_user_func_array(array($this, $method), array_slice($this->uri->rsegments, 2));
메소드를 호출하는데 인자값 $method 를 찍어보면
index lists post .... 등의 값들이 오는데
index 의경우는 Main 클래스의 index 함수를 호출하면되는데
lists 와 post 같은경우 함수가 어디붙어있는지 찿지를 못하고있습니다
어디에있는함수인가요?
조언부탁합니다