loadData() method of CForm never mentioned in Working with forms guide

Hi, sorry for my english and any other mistake.

I sarted working with forms following this online tutorial:

/doc/guide/1.1/en/form.builder (it seems i am not allowed to embed urls…)

There are very simple and useful code examples (thanks for that), but the loadData() method that, unless i am wrong, is necessary to put form data in related model, is never used, and nowhere in the guide I found a reference to that needle.

This stopped me until, watching code, i realized something was missing.

I think somebody should add it to the guide in order to prevent further time losses.

Thanks for listening,

Davide

EDIT:: uh… now it seems to work without loadData()…

Usually data are retrived from the database with ActiveRecord.

Take a look to the Gii generated controller/view, you will notice how the usual workflow proceed without loadData (in fact, I discoverd only today the existance of this needle).

It turned out that the submitted() method calls (or does the same tasks of) loadData(). My code didn’t work due to another validation that i requested calling validate() before submitted()

Anyway, thanks for your answer!