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

Phalcon form Element throwing exceptions #1413

Closed
gsouf opened this issue Oct 21, 2013 · 1 comment
Closed

Phalcon form Element throwing exceptions #1413

gsouf opened this issue Oct 21, 2013 · 1 comment

Comments

@gsouf
Copy link

gsouf commented Oct 21, 2013

When using echo $element from : http://docs.phalconphp.com/en/latest/reference/forms.html

Sometimes an element throws an exception :
Method Phalcon\Forms\Element\Select::__toString() must not throw an exception

Actually the __toString shouldnt throw any excetion : http://stackoverflow.com/questions/2429642/why-its-impossible-to-throw-exception-from-tostring

(the exception was thrown because the service escaper was not registered, but for convenience, it would be better to trigger an error when an exception happens from the __toString method, it owuld allow to debug the exception).

This was referenced Oct 22, 2013
phalcon pushed a commit that referenced this issue Oct 22, 2013
phalcon pushed a commit that referenced this issue Oct 22, 2013
@gsouf
Copy link
Author

gsouf commented Oct 23, 2013

Thanks Phalcon

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