关于remap方法的参数?
function _remap($method){
if($method=='show')
{
parse_str($_SERVER['QUERY_STRING'], $_GET);
if($this->input->get('keyword'))
{
$this->show($this->input->get('keyword'));
}
}
else
{
$this->$method($params);
}
}
怎样用参数传递给非show的方法? call_user_func_array(array(&$this, $method), array_slice($this->uri->rsegments, 2));
页:
[1]