Yii Framework Forum: Tracing create new record problem - Yii Framework Forum

Jump to content

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

Tracing create new record problem Rate Topic: -----

#1 User is offline   ymuskie 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 24
  • Joined: 07-October 10

Posted 01 November 2010 - 05:26 AM

Hi,

I've done some modification of the _form.php of one of my model.

Now, when I tried to create a new record, I filled in all the required fields, click the Create button. But nothing happened. I still on the form page. No errors prompted. I tried to use the firebug, view the application.log and the web server log. Everything is normal.

How could I trace for this kind of problem?

Note: I also tried the not enter any value for the required field, the system will prompt me that field is required.

Thanks!
0

#2 User is offline   ignis 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 57
  • Joined: 27-April 10
  • Location:Lithuania - Vilnius

Posted 01 November 2010 - 05:33 AM

check <form> action and if this ok then print your post array in controller action (insert or update, depends wat you are doing) and you will see where your data is, it must be 'ModelName[Value]'
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