Re: html->submit() does not exists?

2007-06-18 Thread Chris Hartjes
On 6/16/07, Mech7 <[EMAIL PROTECTED]> wrote: > > Ah thanks that works.. but then why can you decide the location for > textareae error messages but not for input boxes? And also why does it > genereate extra html instead of only the message? Would it not be more > customizable if you can write you

Re: html->submit() does not exists?

2007-06-18 Thread Robert K S
New Cake user here... just to be clear, what should be modified in the CakePHP blod tutorial to get it working with the 1.2 branch? Thanks... All the best, Robert K S On Jun 14, 5:52 pm, francky06l <[EMAIL PROTECTED]> wrote: > Most of the html helper function concerning form have been moved to >

Re: html->submit() does not exists?

2007-06-16 Thread Mech7
Ah thanks that works.. but then why can you decide the location for textareae error messages but not for input boxes? And also why does it genereate extra html instead of only the message? Would it not be more customizable if you can write your own html in the view? On 16 jun, 00:21, gwoo <[EMAIL

Re: html->submit() does not exists?

2007-06-15 Thread gwoo
@Mech7 You are using the helper incorrectly. if you use $form->input() then you add the option for the error message. if you are using the individual form helper methods like textarea echo $form->textarea('field'); echo $form->error('field', 'Error in field'); --~--~-~--~~

Re: html->submit() does not exists?

2007-06-15 Thread Chris Hartjes
On 6/15/07, Mech7 <[EMAIL PROTECTED]> wrote: > Also isn't it flawed by design creating forms with php? shouldn't it > be better if it was just possible to write the html and assign and > error message, something like: Ah, I like how I get to repeat this message every once in a while 1) CakePHP i

Re: html->submit() does not exists?

2007-06-15 Thread Mech7
Also when i uses error in a textarea it creates and attribute error... textarea('article', array('error' => 'Article is required')); ?> Makes Also isn't it flawed by design creating forms with php? shouldn't it be better if it was just possible to write the html and assign and error message,

Re: html->submit() does not exists?

2007-06-15 Thread Mech7
But if i don't use the formhelpers then how do i assign the error message to them? On 15 jun, 19:18, MrTufty <[EMAIL PROTECTED]> wrote: > The link works fine here. > > If you don't need the div wrappers, don't use the form helper. Simple > really. > > To create a form Cake can work with without u

Re: html->submit() does not exists?

2007-06-15 Thread Mech7
But if i don't use the formhelpers then how do i assign the error message to them? On 15 jun, 19:18, MrTufty <[EMAIL PROTECTED]> wrote: > The link works fine here. > > If you don't need the div wrappers, don't use the form helper. Simple > really. > > To create a form Cake can work with without u

Re: html->submit() does not exists?

2007-06-15 Thread MrTufty
The link works fine here. If you don't need the div wrappers, don't use the form helper. Simple really. To create a form Cake can work with without using the form helper, specify the names of the input tags like data[Model][field] - that will then work without having to restructure the input. Th

Re: html->submit() does not exists?

2007-06-15 Thread Mech7
hmm i see but this link does not seem to work? http://bakery.cakephp.org/articles/view/multiple-rules-of-validation-per-field-in-cakephp-1-2 Also how do i use the form helper without it generating all sorts of html i don't need like div wrappers 0_o On 15 jun, 08:28, MrTufty <[EMAIL PROTECTED]>

Re: html->submit() does not exists?

2007-06-14 Thread MrTufty
Actually, your var $validate line there should go in your model. Typo? :) As for the other stuff, check the links provided :) On Jun 14, 7:50 pm, Mech7 <[EMAIL PROTECTED]> wrote: > Thanks i found what goes in my controller± > > // Validator > var $validate = array('title' => array('rule'

Re: html->submit() does not exists?

2007-06-14 Thread Mech7
Thanks i found what goes in my controller± // Validator var $validate = array('title' => array('rule' => array('between', 3, 255))); But what else needs to go in my view and function.. Btw all characters goes wrong only on this page with my keyboard, no other apps have this. On 14 jun,

Re: html->submit() does not exists?

2007-06-14 Thread francky06l
very quick search in this groups gives a lot of threads: one of them : http://groups.google.com/group/cake-php/browse_thread/thread/a40053f4ea61f227/439dc65a6ddd80a9?lnk=gst&q=validations+1.2&rnum=2#439dc65a6ddd80a9 On Jun 14, 5:58 pm, Mech7 <[EMAIL PROTECTED]> wrote: > Ah found it thx, is there

Re: html->submit() does not exists?

2007-06-14 Thread Mech7
Ah found it thx, is there any example on how to use validators with the form class btw. On 14 jun, 17:52, francky06l <[EMAIL PROTECTED]> wrote: > Most of the html helper function concerning form have been moved to > the form helpers. Check the form.php into the cake core files (ie : > $form->subm

Re: html->submit() does not exists?

2007-06-14 Thread francky06l
Most of the html helper function concerning form have been moved to the form helpers. Check the form.php into the cake core files (ie : $form->submit) On Jun 14, 5:34 pm, Mech7 <[EMAIL PROTECTED]> wrote: > I get this error in 1.2 when i try the blog tut.. > > Warning (512): Method HtmlHelper::sub

html->submit() does not exists?

2007-06-14 Thread Mech7
I get this error in 1.2 when i try the blog tut.. Warning (512): Method HtmlHelper::submit does not exist [CORE\cake\libs \view\helper.php, line 148] With code submit('Save') ?> It still is in the var of html.php though? 'submit' => '', only no function anymore ? --~--~-~--~~--