-
-
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
Volt problem with interpreting url_field() function #13447
Comments
You forgot about array. Also github is only for NFR and bugs, for questions use forum - https://forum.phalconphp.com |
@Jurigag, but the Volt documentation does not contain anything about arrays. <label for='name'>Name</label>
{{ text_field('name', 'size': 32) }} |
@Jurigag also look at this. {{ tel_field("name","class":"form-control") }} is interpreted by Volt as <?= $this->tag->telField(['name', 'class' => 'form-control']) ?> And this line {{ url_field("name","class":"form-control") }} is interpreted by Volt as <?= $this->tag->urlField('name', 'class' => 'form-control') ?> Why such difference? I think it's a bug. |
https://github.com/phalcon/cphalcon/blob/master/phalcon/mvc/view/engine/volt/compiler.zep#L483 well yea you might actually be right. We need to add it there. |
I have the same error with search_field Like url_field, search_field is missing in arrayHelpers https://github.com/phalcon/cphalcon/blob/master/phalcon/mvc/view/engine/volt/compiler.zep#L483 I think it's the same with
|
Full list of tags added are as follows; - url_field - color_field - range_field - date_time_field - date_time_local_field - month_field - time_field - week_field
Full list of tags added are as follows; * url_field * color_field * range_field * date_time_field * date_time_local_field * month_field * time_field * week_field
Full list of tags added are as follows; * url_field * color_field * range_field * date_time_field * date_time_local_field * month_field * time_field * week_field
Full list of tags added are as follows; * url_field * color_field * range_field * date_time_field * date_time_local_field * month_field * time_field * week_field
Fixes #13447: Added Volt tags to array helper in Volt Compiler
This has been addressed with work by @CameronHall |
Thanks for this fix but i think |
[#13447] - Added search_field in the volt compiler helpers
@frsbarbier I just added it. Nice catch. Thanks! |
I think Volt misinterprets the function url_field()
interpreted as
Details
The text was updated successfully, but these errors were encountered: