Yii Framework Forum: crea record - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

crea record Rate Topic: -----

#1 User is offline   ilovephp 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 128
  • Joined: 04-February 11
  • Location:treviso

Posted 20 April 2011 - 08:52 AM

Salve a tutti,

nella mia potentissima view, con 'enableAjaxValidation'=>true mi salva due record,
invece con:
$form=$this->beginWidget('CActiveForm', array(
	'id'=>'incaricati-form',
	'enableAjaxValidation'=>false,
)); ?>





non mi dà alcun problema?

è colpa di ajax?

come posso sistemare
la non conoscenza è una brutta bestia
0

#2 User is offline   nickcv 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 154
  • Joined: 23-November 10

Posted 20 April 2011 - 10:26 AM

il problema è al 99,9'% nel controller...

guarda cosa esattamente fa quando riceve la chiamata ajax
sometimes it's just like teaching pigs how to fly

Posted Image
Posted Image looking for some invite keys? welcome on B4K!
0

#3 User is offline   zaccaria 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 2,232
  • Joined: 04-October 09
  • Location:Moscow

Posted 21 April 2011 - 12:57 AM

Hai dimenticato di sbloccare le seguenti righe di codice:

		// Uncomment the following line if AJAX validation is needed
		// $this->performAjaxValidation($model);

0

#4 User is offline   ilovephp 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 128
  • Joined: 04-February 11
  • Location:treviso

Posted 21 April 2011 - 02:09 AM

View Postzaccaria, on 21 April 2011 - 12:57 AM, said:

Hai dimenticato di sbloccare le seguenti righe di codice:

		// Uncomment the following line if AJAX validation is needed
		// $this->performAjaxValidation($model);



una sola parola. GRANDE. :)

grazie mille. spero che col tempo capirò il perchè.
la non conoscenza è una brutta bestia
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users