zen of coding

Improved form handling in CakePHP 1.3

Here is a typical, simple form done with cake’s form helpers: [code language=”php”] echo $this->Form->create(‘Article’, array(‘action’ => ‘test’)); echo $this->Form->input(‘Article.title’); echo $this->Form->input(‘Article.body’); echo $this->Form->input(‘Article.user_id’, array(‘type’ => ‘hidden’)); echo $this->Form->end(‘Add Aricle with Tags and Comment’); [/cc] Which outputs the following HTML: [code language=”html”] Title Body [/cc] This is fine and all,[…]

Read More »
%d bloggers like this: