Extensions
Go to page:
When you use form builder to create a form, you must transfer a array and a model as parameter to CForm like this:
$array = include('blogEditForm.php'); // blogEditForm.php return a array $model = new BlogActiveRecord(); $form = CForm($array, $model); //after this you can use $form and display it $form->render();
But, it is impossible if $model is not a CModel. For example, if you wanna display a form to collection same data and save the data to files or in a single field of a table after serialized.
I got a idea form CForm that I can build a form by a array. why can't I build a model by a array ? Now, this virtual model is actually what you want. It's a simple calss extends CModel, but I add same simple functions to help you build a model by a array.
PS: I haven't has fully test for it. If there are same mistake, please can tell me.
In Chinese: 使用一个数组来通过VirtualModel来生成model,就像用一个数组通过CForm生成一个表单一样。 中文使用说明 here
Here are same resources
This extension allows AR models to work with nested sets tree.
Author is creocoder.
Resources
This extension is ...
Automatic admin interface. It reads your model to provide a interface that you can immediately use to start adding content to the site.
For download use git. git@github.com:firstrow/yiiadmin.git
or press here to download latest source zip file.
Resources
This extension is for working with zip. Based on comments to http://www.php.net/manual/en/function.zip-open.php
Created to ease the quite repetitive task of programming cascading select lists.
Resources
仿django的信号处理系统 用途: 新添加的模块不改变核心代码捕获系统核心的事件的钩子
Resources
wvActiveForm is a CActiveForm descendant that validates the input on client with jQuery, using the rules defined at the model, while also supporting custom rules. Besides validation some rules may also filter invalid characters during typing.
Validators:
- Required
- Number
- String (length)
- Default value (displays value that disappear on field click)
- No whitespace
- URL
- Manual rules
Rules:
- jQuery.Validate
- jQuery.Numeric
- jQuery.DefaultValue
- jQuery.keyFilter
CValidator supported:
- CRequiredValidator
- CStringValidator
- CNumberValidator
- CEmailValidator
- CUrlValidator
Starting with 0.7, now wvActiveForm supports layouts for error messages. Just add a 'layoutName' paramater to the form. There are 2 built-in layouts, 'default' (which is compatible with the default Yii error messages) and 'qtip', based on jQuery.qtip.

