stmadman 发表于 2009-11-26 14:02:19

纠正手册错误

手册“控制器”一章“重新定义方法的调用规则”代码

function _remap($method)
{
    if ($method == 'c')
    {
      $this->$comment();
    }
    else
    {
      $this->method();
    }
}

应该修改为:

function _remap($method)
{
    if ($method == 'c')
    {
      $this->comment();
    }
    else
    {
      $this->$method();
    }
}

Hex 发表于 2009-11-26 14:44:34

非常感谢,错误已根据官方文档进行了修正。

hj_545 发表于 2009-12-13 15:46:03

鄙视下楼主
$method 这个变色加粗干什么!
页: [1]
查看完整版本: 纠正手册错误