We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

form field how to use readonly in volt?

html <input type=text name=name value='' readonly=readonly.... in volt how does it use same method... readonly...

help me... please



2.1k

{{ input("name", "readonly", "value" => '') }}

something along the lines of that



3.1k

I tried but didn't work... I don't know why... <?php echo $form->render("mediaid",array("readonly" => "readonly")) ?> this works well..

{{ input("name", "readonly", "value" => '') }}

something along the lines of that



33.8k
{{ text_field('name', 'readonly': 'true', 'value': null) }}