How to add placeholders in Zend Framework 2

In this tutorial I will explain how to use placeholders in Zend Framework 2. Its very simple and easy to do it.

Just open you form model, and add:

'attributes' => array(
'placeholder'=>'Enter a key'
),

in every elements of your form.

I hope this is helpful for you!









Leave a Comment