In: yii
15 二 2011下载地址 http://www.yiiframework.com/extension/upload 文档 http://www.verot.net/php_class_upload_docs.htm class.upload.php documentation Description Description | Vars (details) | Methods (details) What does it do? It manages file uploads for you. In short, it manages the uploaded file, and allows you to do whatever you want with the file, especially if it is an image, and as many times as you want. It is the [...]
In: yii
1 二 2011?boolean: Alias of CBooleanValidator, 只有true和 false ?captcha: Alias of CCaptchaValidator, 验证码验证 ?compare: Alias of CCompareValidator, 对比表单里面的属性或者常量 ?email: Alias of CEmailValidator, 确认是个正确的e-mail 地址 ?default: Alias of CDefaultVAlidator, 按照默认值设置 ?exist: Alias of CExistValidator, 确定可以从表的字段里面找到in the specified table column ?file: Alias of CFileValidator, 确定属性包括上传文件名an uploaded file,简单说就是确认有上传文件 ?filter: Alias of CFilterValidator, transforming the attribute with a filter ?in: Alias [...]
In: yii
1 二 2011yii 里面 gii 设置 modules 模块里面的model,以及各种配置图解
In: yii
17 一 2011下来菜单,默认选择值”selected” $form->dropDownList($model,’sex’,array(’1′=>’men’,’2′=>’women’)); 例如: < select name="sex"> < option value="1">men < option value="2" selected="selected">women 操作方法 $form->dropDownList($model,’sex’,array(’1′=>’men’,’2′=>’women’), array(‘options’ => array(’2′=>array(‘selected’=>true))));
In: yii
9 一 2011Yii Framework 1.1.2版本中已经有了gii, 就是一个基于web的脚手架!可以生成模型,控制器,视图等! 配置protected/config/main.php ‘modules’=>array( ‘gii’=>array( ‘class’=>’system.gii.GiiModule’, ‘password’=>’123456′, //’ipFilters’=>array(’192.168.1.101′), //如果用IP访问,这里需配置相应的IP ), ), 最后,我们可以通过以下链接来访问: /index.php?r=gii
yiic shell sub module by daveline at 4:50am on April 21, 2010. How can you use yiic shell to create a nested submodule? to create the 1st module module test1 to create the sub module module test1\test2 or possibly modules test1\modules\test2 在config里面main.php 增加下面modules的配置 ‘modules’ => array( ‘admin’ => array( )), 要在模块里面增加控制器只要 controller admin/System 这样就可以
在view里面只要这样就可以引入jquery 引入外面网址 引入本地站点 引入css
yiic 去执行时候因为调用另外一个model 所以会出现Trying to get property of non-object 所以在要在调用model之前判断这个model是否存在
QK31欢迎你的到来.