Thanks everyone..

On Dec 29, 9:02 pm, Sharan <[EMAIL PROTECTED]> wrote:
> Form related functions have been moved to form helper in cake1.2
> instead of html helper.
>
> Read this article to make the blog tutorial work for you in cake 1.2 
> :http://ahsanity.wordpress.com/2007/08/31/making-the-blog-tutorial-run...
>
> Regards,
> Sharan.
>
> On Dec 29, 4:15 pm, cookiejar_3 <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I'm having a problem with the blog tutorial, I followed the steps on
> > how to create a blog. The viewing of the title and the message was
> > good but adding a blog does not work well. when I run 
> > thehttp://www/posts/add
> > It gives me a message:
>
> > Notice: Method input() is deprecated in HtmlHelper: see
> > FormHelper::input or FormHelper::text in C:\apache\htdocs\cake\cake
> > \libs\view\helpers\html.php on line 652
>
> > Notice: Method tagErrorMsg() is deprecated in HtmlHelper: see
> > FormHelper::error in C:\apache\htdocs\cake\cake\libs\view\helpers
> > \html.php on line 718
>
> > Body:
> > Notice: Method textarea() is deprecated in HtmlHelper: see
> > FormHelper::input or FormHelper::textarea in C:\apache\htdocs\cake\cake
> > \libs\view\helpers\html.php on line 576
>
> > Warning (512): Method HtmlHelper::submit does not exist [CORE\cake\libs
> > \view\helper.php, line 148]
>
> > I'm using a Cake 1.2.0 stable version and my posts_controller.php is:
>
> > <?php
> > class PostsController extends AppController{
> >         var $name = 'Posts';
> >         function index(){
> >            $this->set('posts', $this->Post->findAll());
> >         }
>
> >         function view($id = null){
> >         $this->Post->id = $id;
> >         $this->set('post', $this->Post->read());
> >         }
>
> >         function add(){
> >            if (!empty($this->data)){
> >               if ($this->Post->save($this->data)){
> >                 $this->flash('Your post has been saved.','/posts');
> >               }
> >            }
> >         }}
>
> > ?>
>
> > My add.thtml is:
>
> > <h1>Add Post</h1>
> > <form method="post" action="<?php echo $html->url('/posts/add')?>">
> >     <p>
> >         Title:
> >         <?php echo $html->input('Post/title', array('size' => '40'))?>
> >         <?php echo $html->tagErrorMsg('Post/title', 'Title is
> > required.') ?>
> >     </p>
> >     <p>
> >         Body:
> >         <?php echo $html->textarea('Post/body', array('rows'=>'10')) ?
>
> >         <?php echo $html->tagErrorMsg('Post/body', 'Body is
> > required.') ?>
> >     </p>
> >     <p>
> >         <?php echo $html->submit('Save') ?>
> >     </p>
> > </form>
>
> > Somebody please help me..
> > Thanks in advance..

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to