I<ve been following a tutorial on Zend_Acl and Zend_Auth to create a login system. I managed to setup a login page that worked.
What I would like to do now is add this same form in the main layout.
As it stands, the login works with a login controller file coupled with a template view file which simply calls up the form like so:
Code: Select all
<div> <?php echo loginForm(); ?> <div>
The problem is that the loginForm function, along with a few others necessairy to make it work, were declared in the loginController page.
Besides the unnatractive solution of adding these functions in every controller of the pages that should include the login form, where should I place these functions and could I call them from the bootstrap?
Thanks in advance for your time