Undefined variable: title
解决方法: 按图修改
public function details($id = 0)
{
$title = ArticleModel::where(['id' => $id, 'is_show' => 1])->value('title');
$this->assign(['id' => $id, 'title' => $title]);
return $this->fetch('news_detail');
}
Undefined variable: title
解决方法: 按图修改
public function details($id = 0)
{
$title = ArticleModel::where(['id' => $id, 'is_show' => 1])->value('title');
$this->assign(['id' => $id, 'title' => $title]);
return $this->fetch('news_detail');
}
全 最后编辑于2023-03-31 17:17:27
相关推荐
快速安全登录
微信登录/注册
{{ bind_phone ? '绑定手机' : '手机登录'}}
{{item.user_info.nickname ? item.user_info.nickname : item.user_name}}
作者 管理员 企业
{{itemf.name}}
{{itemc.user_info.nickname}}
{{itemc.user_name}}
回复 {{itemc.comment_user_info.nickname}}
{{itemf.name}}