Thanks francky,
I had come out from this issue by following your reply.This kind of
explanation with code is very easy for the newbies like us to move
forward.
On Nov 14, 4:10 pm, francky06l <[EMAIL PROTECTED]> wrote:
> Use form helper instead of html, your view could be :
>
> <h1>Add Member</h1>
> <?php echo $form->create('member', array('action' => 'add')); ?>
> <p>
> Email:
> <?php echo $form->input('email', array('size' => '40'))?>
> </p>
> <p>
> <?php echo $form->submit('Save') ?>
> </p>
> </form>
>
> hope this helps
>
> On Nov 14, 8:01 am, "Seenu V" <[EMAIL PROTECTED]> wrote:
>
> > I am a newbie to cakephp.Today i downloaded the 1.2 pre_beta version
> > and the i had add a add page.
>
> > <h1>Add Member</h1>
> > <form method="post" action="<?php echo $html->url('/members/add')?>">
> > <p>
> > Email:
> > <?php echo $html->input('Member/email', array('size' => '40'))?>
> > </p>
> > <p>
> > <?php echo $html->submit('Save') ?>
> > </p>
> > </form>
>
> > On the controller i had create a file named members_controller.php and
> > add the below coding.
>
> > <?php
>
> > class MembersController extends AppController
> > {
> > var $name = 'members';
>
> > function index() {
> > }
>
> > function add()
> > {
> > if (!empty($this->data))
> > {
> > if ($this->Member->save($this->data))
> > {
> > $this->flash('Member added.','/members');
> > }
> > }
> > }}
>
> > I had followed the same method of blogs turorials.
>
> > When i reach to this page i am getting the error as below and at the
> > same time when i try to add the email address its not adding into the
> > table.Help me to come out from this issue and also how to add the data
> > into the table.Please do me this favour with a example.
>
> > Notice: Method input() is deprecated in HtmlHelper: see
> > FormHelper::input or FormHelper::text in
> > C:\inetpub\wwwroot\poochout\cake\libs\view\helpers\html.php on line
> > 652
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---