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



1.5k

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

something along the lines of that



1.9k

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



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