Wiki articles tagged with "CActiveForm"

Showing 1-5 of 5 items.

Yii Change Password with use of old and repeat password using bootstrap TbActiveForm

Created 10 years ago by Rohit Suthar, updated 10 years ago by Rohit Suthar.

In this wiki I will show how could use a TbActiveForm for changing the old password with help of old, new and repeat password features.

0 0
7 followers
Viewed: 58 449 times
Version: 1.1
Category: Tutorials

A simple way to get Yii client-side form validation run when submitting by ajax

Created 12 years ago by nlac, updated 10 years ago by nlac.

A time ago i've met the issue that Yii doesn't run any client-side form validation when submitting the form by CHtml::ajaxSubmitButton. The small javascript below helps to fix it.

4 1
11 followers
Viewed: 65 070 times
Version: 1.1
Category: Tutorials

Avoiding duplicate script download when using CActiveForm on Ajax calls

Created 13 years ago by Antonio Ramirez, updated 13 years ago by Maurizio Domba Cerin.

The only thing required is simple, we just need to create a view that will be partially rendered by a call to a controller (using renderPartial) and make sure that we process output -setting to true the parameter on the function. Everything will work as expected but...

11 1
9 followers
Viewed: 27 729 times
Version: 1.1
Category: Tutorials

How to use single form to collect data for two or more models (CActiveForm and Ajax Validation edition)

Created 13 years ago by RusAlex, updated 13 years ago by Darwin Wen.

With Yii you can use one CActiveForm for collecting data for two or more models with ajax validation and client validation.

16 0
33 followers
Viewed: 74 374 times
Version: 1.1
Category: How-tos

Extending CActiveForm for some form display fixes and language tweaks

Created 14 years ago by Trejder, updated 14 years ago by Trejder.

In this simple example I'll demonstrate how to extend CActiveForm class to overload some drawing functions to achieve some commonly used fixes in forms.

The colon

Here is overloaded version of CActiveForm.labelEx that adds colon (:) at the end of text of label with respecting CHtml::$afterRequiredLabel and CHtml::$beforeRequiredLabel

5 0
6 followers
Viewed: 25 347 times
Version: 1.1
Category: Tips