Yii Framework Forum: Save an object in session instead od database - Yii Framework Forum

Jump to content

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

Save an object in session instead od database Rate Topic: -----

#1 User is offline   yiiblablabla 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 23-February 10

Posted 23 February 2010 - 01:38 PM

I have a series of registration forms, and when I submit a form I want to save the data in an object in session & not in database, andd when I finish registration I want to save these objects to database one by one ..

Any help ? :unsure:

Thanks in advance
0

#2 User is offline   gallego123 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 535
  • Joined: 11-August 09
  • Location:Argentina

Posted 23 February 2010 - 03:24 PM

View Postyiiblablabla, on 23 February 2010 - 01:38 PM, said:

I have a series of registration forms, and when I submit a form I want to save the data in an object in session & not in database, andd when I finish registration I want to save these objects to database one by one ..

Any help ? :unsure:

Thanks in advance




se me ocurre que puedes mandar los datos a la vista y ponerlos ocultos.
Puedes usar esto para mandar varios registros del mismo modelo http://www.yiiframew...uide/form.table

o bien puedes extender CWebUser y alamcenar ahi los datos http://www.yiiframew...oc/cookbook/60/

saludos y espero que entiendas el español! jajaja
KISS - Keep It Simple Stupid
ASAP-As Soon As Possible
http://www.yiiframew...oc/cookbook/71/
0

#3 User is offline   yiiblablabla 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 23-February 10

Posted 23 February 2010 - 03:43 PM

Gracias, he utilizado el traductor Google y comprendo perfectamente que lool
pero ahora tengo otro problema .. cómo me puedo presentar un formulario con casillas de verificación? .. Sólo se pueden asignar nombres pero no los valores :blink:
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