评论列表
徐先生 2016-01-14 17:44:04
我想知道在禅道中想显示生成到目录下的图片怎么显示,zentao新手,请多指教
王春生 2016-01-15 09:10:31
看不懂。
zhu 2016-01-07 11:20:35
我想在select标签中绑定从数据库中取到的数据,行数已经出来了,就是空的,该怎么处理
model.php 写一个获取开发人员列表的方法
public function getDevList($pager = null)
{
return $this->dao->select('name')->from('developer')->page($pager)->fetchAll();
}
在control.php中的create方法中写入
$this->view->devs = $this->blog->getDevList($pager);
$this->view->pager = $pager;
再create.html.php里调用
<?php echo html::select('assigned', $devs ,"","");?>
王春生 2016-01-08 09:55:50
html::select()方法需要的是key => value的这种方式。
$this->select('account, name')->from()->fetchPairs()
查询的时候要查询两个字段,然后返回用fetchPairs()方法。
11 2015-11-12 16:21:38
请问用户编辑的那个页面点击保存按钮的js时间在哪里啊?怎么保存到数据库的
wendy 2015-06-15 17:21:31
在php里写如下内容:<img src="flow.jpg">,图片位置正确的情况下,不显示图片,log报错如下:ERROR: the control file D:\program\xampp\zentao\module\flow\control.php not found. 应该怎么解决?
王春生 2015-06-16 08:20:41
图片的路径建议从根路径开始引用。浏览器引用的时候是根据你当前访问的路径来计算的。你只写flow.jpg,未必是正确的。
3/3
发表评论
评论通过审核后显示。