/**
* 获取当前的控制器名
* @access public
* @param bool $convert 转换为小写
* @return string
*/
public function controller($convert = false)
{
$name = $this->controller ?: '';
return $convert ? strtolower($name) : $name;
}
/**
* 获取当前的操作名
* @access public
* @param bool $convert 转换为驼峰
* @return string
*/
public function action($convert = false)
{
$name = $this->action ?: '';
return $convert ? $name : strtolower($name); // 代码在这里出错了,以前写的大写驼峰法方法,现在全部要把大写转小写,真心无语,每个版本的更新都会有惊喜
}
最佳答案
