For submit: Include the FormHelper in your controller, then use:
$form->submit() (see 1.2 api at http://api.cakephp.org/1.2 ) personally, I use (from the controller): $this->flash('message', $url) Again, refer to api for more details. Martin wrote: > Hello bakers, > I 've successfully created my first blog with cake using the example > at: > http://manual.cakephp.org/appendix/blog_tutorial > > Two things I wanted to comment for this example: > > 1- /app/views/posts/add.thtml > > <?php echo $html->submit('Save') ?> > IS DEPRECATED. > > What is the other method we need to use to get the SUBMIT buttons > working in 1.2 ? > > > 2- /app/views/posts/add.thtml > > <?php echo $html->tagErrorMsg('Post/body', 'Body is required.') ?> > > Error messages are not getting printed. I suppose that this is because > this $html methods are deprecated (Same as point 1) > > But is working so far. Love it. > > If there are more Cake examples around there, and I would love to see > AJAX thingies / REST apps / APIs and such, please post a reply or > point me to some URL's. > > MARTIN > > > > > -- Joshua Benner http://bennerweb.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
