Jump to content
Larry Ullman's Book Forums


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Awesomo

  • Rank
  1. Heh, what an unusual imagination I must have! Thanks for letting me know.
  2. Hi Larry has a rather good Yii intro, at http://www.larryullman.com/series/learning-the-yii-framework/ I thought that one of Larrys blogs mentioned that the whole series was available in a PDF. Or some printable format. And I don't mean the new book! Did I imagine it? Or is it available somewhere? Thanks
  3. Good point. I've seen that Symfony actually can include HTML5 validation when it generates forms. Other frameworks probably do something similar. See http://symfony.com/doc/current/book/forms.html
  4. Thanks everyone for the replies. Special thanks to HartleySan for the detailed example above.
  5. Agree with your point about the validation, thats actually what I do at the moment. Good point about disabling Javascript. With regards to your comment about using "JS to spice things up" - how do you go about this? If you're using PHP to generate the form, would you still use a JS framework as well? Thanks Diarmuid
  6. Hi I have used Javascript and PHP for several months now, but I have yet to use a framework. I'm still a bit unsure about which is the best method for creating my forms. I usually put form validation in both the Javascript and PHP. I'm planning to learn a new framework now, and buy one of Larrys books. Either the Javascript or the Yii book. So the answer to this question will also help guide me towards the right book. All the PHP frameworks have some method of creating forms. There is a Yii example at http://www.yiiframework.com/doc/guide/1.1/en/form.view A form can also be generated using Javascript, and the various Javascript frameworks also have their own ways of generating forms. There is a Knockout.js example at http://knockoutjs.com/examples/contactsEditor.html Of course you would need to add some PHP to this to have it store the contacts in a database. Which method is "best practice"? Javascript seems to provide more flexibility for trendy display techniques, but it would seem to me that PHP would integrate better with the back end database. How do you decide upon the code for generating your forms? Thanks Diarmuid
  • Create New...