Cakephp 对非对象调用成员函数create()
我面临着在非对象上调用成员函数create()的问题 请帮助我,我的代码是:-Cakephp 对非对象调用成员函数create(),cakephp,Cakephp,我面临着在非对象上调用成员函数create()的问题 请帮助我,我的代码是:- <?php echo $form->create('Register', array('action' => 'register')); echo $form->input('username'); echo $form->input('password'); echo $form->input('cnfrmpassword', arra
<?php
echo $form->create('Register', array('action' => 'register'));
echo $form->input('username');
echo $form->input('password');
echo $form->input('cnfrmpassword', array('type' => 'password'));
echo $form->submit();
echo $form->end();
?>
像这样试试。。。。助手前面缺少
$this->
<?php
echo $this->Form->create('User', array('action' => 'register'));
echo $this->Form->input('username');
echo $this->Form->input('password');
echo $this->Form->input('cnfrmpassword', array('type' => 'password'));
echo $this->Form->end('Submit');
?>
像这样试试。。。。助手前面缺少
$this->
<?php
echo $this->Form->create('User', array('action' => 'register'));
echo $this->Form->input('username');
echo $this->Form->input('password');
echo $this->Form->input('cnfrmpassword', array('type' => 'password'));
echo $this->Form->end('Submit');
?>
但是现在当我调用register()时,它给出了一个错误,调用成员函数save()调用非abject``但是现在当我调用register()时,它给出了一个错误,调用成员函数save()调用非abject`'`