Ecco i codicei che potrebbero aiutare a capire
view/scripts/auth/index.phtmlcontrollers/AuthController.phpcodice:<?php $this->headTitle('Login'); ?> <h1>Login</h1> <?php echo $this->form->setAction($this->url()); ?>codice:<?php class AuthController extends Zend_Controller_Action { public function init() { /* Initialize action controller here */ } public function indexAction() { // action body $form = new Application_Form_Login(); $request = $this->getRequest(); if ($request->isPost()) { if ($form->isValid($request->getPost())) { } $this->view->form = $form; } } }

Rispondi quotando