tengawaakito 发表于 2009-10-16 16:35:03

关于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的方法?

visvoy 发表于 2009-10-16 17:44:40

call_user_func_array(array(&$this, $method), array_slice($this->uri->rsegments, 2));
页: [1]
查看完整版本: 关于remap方法的参数?