On Thu, Aug 16, 2012 at 9:57 AM, anespa <[email protected]> wrote:
>  Hi Friends,
>
> I am newbie in php , when I execute code i got error as "Error: Call to a
> member function create() on a non-object
> File: C:\wamp\www\cakephp06\app\View\Users\index.ctp
> Line: 1"
>
> my view is :
>
> index.ctp
> ==========
> <?php echo $form->create(null, array('action' => 'index'));?>
> <fieldset>
> <legend>Enter Your Name</legend>
> <?php echo $form->input('name'); ?>
> </fieldset>
> <?php echo $form->end('Go');?>


If you're using Cake2, the create bit should be written like this:
$this->Form->create

See http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html
for more details.

Mike.

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.


Reply via email to