How to use Bootstrap for ZfcUser forms in Zend Framework 2.5

Hi guys! In this tutorial I will explain how to customize the forms in Zend Framework 2.5 with Bootstrap's styles. I will add Bootstrap's styles in ZfcUser's forms.

First, I have added the Boostrap link into my layout:

->prependStylesheet($this->basePath('css/bootstrap.min.css')) ?>

; ?>

Next, I will open my Form/login file and I will add:



'attributes' => array(

In this way I will add Boostrap's styles on my inputs fields.

Now, I want customize my button and I will add:

'class' => 'btn btn-lg btn-primary btn-block btn-signin',



Video tutorial:

Leave a Comment