Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]Call to undefined function phalcon\tag::submitfield() #561

Closed
Cmssspl opened this issue Apr 19, 2013 · 2 comments
Closed

[Bug]Call to undefined function phalcon\tag::submitfield() #561

Cmssspl opened this issue Apr 19, 2013 · 2 comments

Comments

@Cmssspl
Copy link

Cmssspl commented Apr 19, 2013

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

@Cmssspl
Copy link
Author

Cmssspl commented Apr 19, 2013

It generates submitfield() , it should generate submitButton() or selectStatic()

@phalcon
Copy link
Collaborator

phalcon commented Apr 22, 2013

Thanks, this is already fixed in 1.1.0 beta 2

@phalcon phalcon closed this as completed Apr 23, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant