Difference between #4 and #5 of
How to use single form to collect data for two or more models (CActiveForm and Ajax Validation edition)

Revision #5 has been created by resurtm on Jul 21, 2011, 4:06:11 PM with the memo:

Removed extra newlines
« previous (#4) next (#6) »

Changes

Title unchanged

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

Category unchanged

How-tos

Yii version unchanged

Tags unchanged

CActiveForm, ajax, several models

Content changed

[...]
<?php $form = $this->beginWidget('CActiveForm', array(
'id'=>'user-form',
'enableAjaxValidation'=>true,
)); ?>

<?php echo $form->errorSummary(array($a,$b));

 
 
 ?>

<div class="row">
<?php echo $form->labelEx($a,'firstName'); ?>
<?php echo $form->textField($a,'firstName'); ?>
<?php echo $form->error($a,'firstName'); ?>
[...]
16 0
33 followers
Viewed: 73 440 times
Version: 1.1
Category: How-tos
Written by: RusAlex
Last updated by: Darwin Wen
Created on: Jul 20, 2011
Last updated: 13 years ago
Update Article

Revisions

View all history