受不了了!新手求教!
thinkphp吧
全部回复
仅看楼主
level 3
SAX1412 楼主
<?php
// 本类由系统自动生成,仅供测试用途
class IndexAction extends Action {
public function index(){
$this->name=456;
$data=M('Test');
$list=$data->select();
//var_dump($list);
//$this->assign('list','$list');
$this->display();
}
}
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>{$name}</title>
</head>
<body>
<volist name="list" id="vo">
{vo.user}:{vo.pass}
</volist>
</body>
</html>
2015年04月27日 07点04分 1
level 3
SAX1412 楼主
volist标签无法输出啊
2015年04月27日 07点04分 2
level 5
assign(list,list)被注释掉了
2015年04月27日 12点04分 3
level 12
3l+1
2015年04月28日 16点04分 4
level 2
3楼说的 对 你都没给模板分配 东西 assign 啊
2015年05月11日 02点05分 5
level 2
$list不要加引号啊
2015年06月01日 03点06分 6
1