ZF-Commons / ZfcUser

A generic user registration and authentication module for ZF2. Supports Zend\Db and Doctrine2. (Formerly EdpUser)
BSD 3-Clause "New" or "Revised" License
497 stars 343 forks source link

Wiki: How to embed the login form on another page. Documentation corrections #673

Open visto9259 opened 6 years ago

visto9259 commented 6 years ago

The Wiki page on this topic states that using the following:

<?php $form = $this->zfcUserLoginWidget(array('render' => false)); ?>

will return a login form.

This is not exact. It will return a ViewModel with a loginForm variable that contains the login form. One would then have to do the following:

$loginForm = $this->zfcUserLoginWidget(array('render' => false))->getVariable('loginForm');