张迪
- 张迪 回复了话题 李炎恢php css div
李炎恢 怎么以前没听过??
- 张迪 回复了话题 在留言板里面怎么去过滤 html代码哦
CHtml::encode()
试试 设置一下$model->$attribute 的值就可以了
- 张迪 回复了话题 $_GET['returnUrl ']得不到值
你 print_r($_GET)下 看看GET里面获得了什么值
- 张迪 回复了话题 Portlet添加最大最小按钮
protected function renderDecoration() { if($this->title!==null) { echo "<div class=\"{$this->decorationCssClass}\">\n"; echo "<div class=\"{$this->titleCssClass}\">"; echo CHtml::link('收缩','#',array('class'=>'opt','style'=>'float:right')); echo $this->title; echo "</div>\n"; echo "</div>\n"; } Yii::app()->getClientScript()->registerScript("opt",<<<EOS $('.opt').toggle(function(){ $(this).parent().parent().next().hide(); $(this).text('打开'); },function(){ $(this).parent().parent().next().show(); $(this).text('收缩'); }); return false; EOS );
这是重写的 renderDecoration
- 张迪 回复了话题 URL重写!!!!!
你的url是使用createUrl生成的吗 ?
还有没有其他的URL重写 把重写的那段代码都贴上来
- 张迪 回复了话题 请教一下如何在model类中使用自定义字段?
同上 只需在rules里面把你自定义的属性定义到safe规则就可以用了
- 张迪 回复了话题 model 执行错误
建议不是特殊需求不要加外键