var $helpers = array('Form');

put that in your controller.


----- Original Message ----
From: jaredonline <[EMAIL PROTECTED]>
To: CakePHP <cake-php@googlegroups.com>
Sent: Monday, May 12, 2008 1:52:12 PM
Subject: Fatal Error when using $form


Controller:
<?php
class UsersController extends AppController {

    var $name = 'Users';

    function index() {

    }

    function login() {

    }
}
?>

View:
<h1>Please Login</h1>

<?=$form->create('User', array('action' => 'login')); ?>

<p>
    Email:<br />
    <?=$form->input('email');?>
</p>

<p>
    Password:<br />
    <?=$form->password('password');?>
</p>

<p>
    <?= $form->end('Login');?>
</p>

Error:
Fatal error: Call to a member function on a non-object in /var/www/
vhosts/365mediaservices.com/subdomains/clients/httpdocs/app/views/
users/login.thtml on line 3

Any help?



      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to