So kindly you are! i'll read the articles you said above alse the whole manual . and try the firefox keyword search..although now i know little about it ..^__^ thanks for all your replies and .and...suffering my english - -
THX!!! On 5月16日, 下午9时31分, Chowsapal <[EMAIL PROTECTED]> wrote: > Here are the entries in the API for $form->error (http:// > api.cakephp.org/1.2/ > class_form_helper.html#9c894167e29ab21edc471f7d9b2c9c59) and $form->input > (http://api.cakephp.org/1.2/ > > class_form_helper.html#83ef190e216e07fb0a77acc9014bb90d) -- they're > not very different from their 1.1 counterparts. > > The main differences are that the $form helpers want Model.field > instead of Model/field, $form->input will print an entire div based on > your field type including the label and error messages, and $form->error will > just print the error message. Also, I think some of the > > parameters are different. > > I have the CakePHP API setup to a Firefox keyword search (http:// > kb.mozillazine.org/Using_keyword_searches), which makes it really > quick to lookup a function really quickly. If you set this up, just > make sure you do it for 1.2 if that's what you're using. > > On May 16, 9:24 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > T____________T > > thank you vvvvvvery much!!!! > > > now i know my cake is v1.2 but the manual is for 1.1. > > any way i can change the error tag to other language ? > > > On 5月16日, 下午9时05分, Chowsapal <[EMAIL PROTECTED]> wrote: > > > > Do you have code in your post.php model declaring how you want to > > > validate the title and body? Something like: > > > > $var validate => array( > > > 'title' => VALID_NOT_EMPTY, > > > 'body' => VALID_NOT_EMPTY > > > ); > > > > Also, this is assuming you're using Cake 1.1, 1.2 handles errors a > > > little differently, either using $form->input instead of $html->input > > > (which includes the error tag), or $form->error instead of $html- > > > > >tagErrorMsg > > > > For the layout problem, you probably want to change /app/views/layouts/ > > > default.thtml > > > > The manual (manual.cakephp.org) is pretty helpful. I'd suggest going > > > over the whole thing. > > > > On May 16, 8:24 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > another question: > > > > how to change default layout with the title "CakePHP: the PHP Rapid > > > > Development Framework"? > > > > i wish the page only show my own views . > > > > > thsnks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---