[web2py] Web2py Separating Controller and View Layer

2014-02-18 Thread Ykä Marjanen
Juslin, I've done it manually like in your example. Yes it's long, but gives full control on every field. I also define number of rows for each text box and have a placeholder text. Also classes and other parameters (e.g. Default values) are easier too define in view than in controller, so that

[web2py] Web2py Separating Controller and View Layer

2014-02-17 Thread Juslin Guo
Hi All, I making the switch from cakephp to web2py, one of the things i struggle with is the form module... Is there a way i could override it without having to touch the controller. This requires the controller to know the css class.. form = SQLFORM(db.post,_class="form-horizontal bucket-form"