Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Tag::form() and the closed form tag

HI all, is there a way to omit the closing </form> tag while using Tag::form() directive? Mixing php and html in this case looks very weird. Instead, better use something like <?php Tag::beginForm($constructorOptions); ?> //form elements <?php Tag::endForm(); ?>

or something similar.



83.4k

Hi, actually, Tag::form() does not produce the </form> tag

Incredible mix of php 'opening' form tag using Tag class and plain html closing tag :O Do you consider to add syntax like I wrote above (or similar) inside of the core helpers?



83.4k
Accepted
answer
edited Oct '14

That is already implemented:

Tag::form() -> open form -> <form ...>
Tag::endForm() -> close form -> </form>

Yep! That exactly about I wrote above. Thanks!