-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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\Tag::resetInput() is not work #12099
Comments
@Studentsov As correctly noted @SidRoberts in #12227 the I agree that we have variances in the documentation about this method, and it was used in an unsuccessful attempt to clear But I'm really not sure that we need a method to do To clear the form you should use |
Implementation of the |
So what ? Still it shouldn't reset Also this method isn't cleaning $_POST https://github.com/phalcon/cphalcon/blob/master/phalcon/tag.zep#L258 |
@Studentsov But |
https://github.com/phalcon/cphalcon/blob/master/phalcon/tag.zep#L333 oh okay, here you right. |
@sergeyklay and I had a discussion and this is how this must work:
|
So also this 333 line from |
I'm glad such a rapid discussion of architecture, but I just have to clear the form :D |
@Studentsov I'll implement clearing forms without clearing |
@Studentsov Could you please take a look at #12280? In general this is what you need. Right? |
Fixed in git clone git@github.com:phalcon/cphalcon.git
cd cphalcon
git checkout 3.0.x
zephir fullclean
zephir build |
Code:
output:
array(2) { ["a"]=> string(1) "1" ["b"]=> string(1) "2" }
Phalcon 3.0.0
OS Windows 10, PHP 7.0.8 x64
OS CentOS 7, PHP 7.0.9 x64
This problem breaks clean forms.
I found an old message: http://stackoverflow.com/questions/37365130/how-to-clear-phalcon-form-element-values, so I think the problem is not new.
The text was updated successfully, but these errors were encountered: