cake-php  

Re: Warning (512): Method HtmlHelper::formTag does not exist [CORE/cake/libs/view/helper.php, line 148]

Wayne Fay
Fri, 12 Oct 2007 17:17:27 -0700

That code was written for Cake v1.1. The formTag method has been
deprecated in v1.2. You'll need to revert to v1.1 or rewrite the code
to use FormHelper directly.

Wayne

On 10/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Does anyone know why I get this warning. And how do I get around it?
> I'm using cake_1.2.0.5427alpha the code comes from IBM's tutorial at:
> https://www6.software.ibm.com/developerworks/education/os-php-cake1/section4.html
> Their code:
>
> <?php echo $html->formTag('/users/register') ?>
> <p>Please fill out the form below to register an account.</p>
> <label>Username:</label>
> <?php echo $html->inputTag('User/username', array('size' => '40')) ?>
> <?php echo $html->tagErrorMsg('User/username', 'username is
> required') ?>
>
> <label>Password:</label>
> <?php echo $html->passwordTag('User/password', array('size' => '40')) ?
> >
> <?php echo $html->tagErrorMsg('User/password', 'password is
> required') ?>
>
> <label>Email Address:</label>
> <?php echo $html->inputTag('User/email', array('size' =>
> '40','maxlength'=>'255')) ?>
> <?php echo $html->tagErrorMsg('User/email', 'email is invalid') ?>
>
> <label>First Name:</label>
> <?php echo $html->inputTag('User/first_name', array('size' => '40')) ?
> >
> <?php echo $html->tagErrorMsg('User/first_name', 'first_name is
> required') ?>
>
> <label>Last Name:</label>
> <?php echo $html->inputTag('User/last_name', array('size' => '40')) ?>
> <?php echo $html->tagErrorMsg('User/last_name', 'last_name is
> required') ?>
>
> <?php echo $html->submitTag('register') ?>
> </form>
>
>
> >
>

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