Hi again (second post or second newbie question)
Using that Yii Blog Demo, I learned how to create a form, and change the controller, model, view, etc.
But now I have a question about where we can create forms. Imagine that in that Yii Blog Demo (http://www.yiiframework.com/demos/blog/) I want to create a form (like the contact form) in a static page like "About".
So, Contact Form is (http://www.yiiframework.com/demos/blog/index.php/site/contact) have a file "contact.php" inside "site" directory.
But "About" page (http://www.yiiframework.com/demos/blog/index.php/site/page?view=about) have the file "about.php" inside "site/page" directory.
I tried to put a form inside “about.php” but it tells me “Undefined variable: model”. I’m strugling with this. I tried to move “about.php” to “site” directory (instead site/page) and it worked.
So, why doesn’t it work in “site/page”? Or this (organization) is meant to be like this (and my question does not make sense) and it shouldn’t work in “site/page” (forms shouldn’t work on static pages)? I don’t know if my questions make any sense.
Thanks and sorry for these newbie questions.
David Almeida