Yii Framework Forum: Fill Form Fields With Contents Of Uploaded File - Yii Framework Forum

Jump to content

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

Fill Form Fields With Contents Of Uploaded File Rate Topic: -----

#1 User is offline   cappadochian 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 147
  • Joined: 02-January 11

Posted 04 March 2013 - 08:07 AM

Hi Guys,

I would like to pick a file, "upload" it, but not really upload (I already have the upload form), but only to get its contents and put those contents in the fields of an ActiveRecord.

Is there a "best practice" to manage this?

Thanks in advance!
BR
c
0

#2 User is offline   Rajith R 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 865
  • Joined: 20-April 11
  • Location:India

Posted 04 March 2013 - 08:13 AM

Read it from the controller and save value to model, pass the model to the view .
Rajith Ramachandran,
Wiwo inc.
| Mobile: 919995504508
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