wychao
- wychao 回复了话题 新手提问:上传图片问题,望高手指点一下
<?php $form=$this->beginWidget('ActiveForm',array( 'id'=>'user-form', 'enableAjaxValidation'=>false, 'htmlOptions' => array('enctype' => 'multipart/form-data'), )); ?>
<?php $this->widget('zii.widgets.grid.CGridView', array( 'dataProvider'=>$model->search(), // 'filter'=>$model, 'columns'=>array( array( 'name'=>'ctiy', 'type'=>'raw', 'value'=>' $data->getCityName()'
model:
public function getCityName(){ $city_no = $this -> city; $cityName = ""; 略... return $cityName; }
'id'=>'color_$c[id]' => 'id'=>"color_$c[id]"
- wychao 回复了话题 用YII做的系统 IE内核无法登陆
额。。 少看了一句话。。 Chrome和Firefox 没问题。那我上面说得废话。
- wychao 回复了话题 用YII做的系统 IE内核无法登陆
不知道
echo 'go to';
输出了么?
看看$model->getErrors();
有输出么 php 函数
number_format($number)
- wychao 回复了话题 php yii数据库查询相关例题
好。。 最后那个事务帮助很大。