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

Can we set the span attribute for each variable in the form itself?

i want to set diiferent icons for each varible like calender for date,message for email etc.....how i can do it the form itself....like using setAttribute ??

<span class ="input-group-addon"> <i class ="fa fa-group"></i> </span>



85.5k

the only way is to extend a component and make render functionality to do what you desire.

Me personally i write those creeky things with simple volt/html and use only form.render("field") to render the input , rest i do it myself.