求教,assign失效问题

浏览:1817 发布日期:2014/12/22 分类:求助交流 关键字: assign失效
-- detail.html
<th rowspan="2" style="text-align:center">{$customer}</th>

-- Show.class.php
class ShowAction extends Action{
public function detail()
{
$customer = "Test assign customer";
$this->assign($customer);
$this->display();
}
}

浏览器访问http://localhost/index.php/Show/detail/为什么页面上没有$customer的值?

thinkphp 3.13 dwz
最佳答案
评论( 相关
后面还有条评论,点击查看>>