cphalcon
cphalcon copied to clipboard
[Bug]Call to undefined function phalcon\tag::submitfield()
Declaration form:
<?php
namespace Admin\Forms;
use Phalcon\Forms\Form,
Phalcon\Forms\Element\Text,
Phalcon\Forms\Element\Select,
Phalcon\Forms\Element\Submit;
class LoginForm extends Form {
public function initialize() {
$this->add(new Text('nick'));
$this->add(new Text('pass'));
$this->add(new Submit('save'));
}
}
View:
<h1>Logowanie</h1>
<div>
Login: {{ loginForm.render('nick') }}
Hasło: {{ loginForm.render('pass') }}
{{ loginForm.render('save') }}
</div>
Error:
( ! ) Fatal error: Phalcon\Forms\Element\Submit::render(): Call to undefined function phalcon\tag::submitfield() in H:\ss\modules\admin\cache\volt\views%%auth%%login.volt.php on line 7
Screenshot: http://d.pr/i/aSjS
It generates submitfield() , it should generate submitButton() or selectStatic()
Thanks, this is already fixed in 1.1.0 beta 2