1 year ago

#343249

test-img

Tharisha Perera

PHP placeholders are not displaying until a refresh

I have a PHP form which is created using Zend Framework. I think I have added all the form placeholders correctly using constructor. But they are not showing in the browser until you refresh the page. I have another form which is working fine(No need to refresh). I can't find what is the reason.

Placeholder example:

$this->add([
    'name' => 'name',
    'options' => [
        'label' => 'Name'
    ],
    'attributes' => [
        'placeholder' => 'Enter group name'
    ]
]);

php

forms

zend-framework2

0 Answers

Your Answer

Accepted video resources