自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

王嘉明的专栏

本人是个新人在不断解决问题中记录解决的方式,算是笔记,也算是对有需要的人的帮助吧

  • 博客(5)
  • 收藏
  • 关注

原创 yii登录

首先在UserIdentity.php里面将内容改为class UserIdentity extends CUserIdentity{    private $_id;    public function authenticate()    {        $username=strtolower($this->username);        $admin=Ad

2014-07-03 16:07:13 467

原创 复选框

昨天在群里问关于复选框的问题,瞄了一眼废话不多说,直接上代码,先来view的form,//name,为复选框的名字checkBoxList($model,'name',array(1=>'武侠',2=>'历史',3=>'玄幻')); ?>controller层CreateActionforeach ($_POST["Links"]["name"] as $key => $value

2013-12-26 10:10:17 640 1

原创 数据库数值显得文字

数据库中type为图片和文字两种内容这为显示的view层的代码array('header'=>'类型','type'=>'html','value'=>'$data->getHasType()','htmlOptions'=>array(              'width'=>'70',              'style'=>'text-align:le

2013-12-04 15:16:54 593

原创 yii上传图片

首先在model里面设置rulearray('img_path','file','types'=>'jpg,gif,png','maxSize'=>1024 * 1024 * 1,'tooLarge'=>'上传文件超过 1MB,无法上传。','allowEmpty'=>true,),//图片是否为必填项可以ture和false先来view层的from的代码labelEx($model,

2013-12-04 15:07:43 707

原创 yii日历

关于yii创建时间labelEx($model,'created'); ?>widget('zii.widgets.jui.CJuiDatePicker', array(          'language'=>'zh_cn',//这个是中文日历             'model'=>$model,              'name'=>'Links[created]

2013-12-04 14:08:52 669

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除