Hi every:
I'm developing a fresh application in Symfony 1.1.2 and I want to use
the new Form Framework so I start reading the Forms Book and also the
recent article from Francois Zaninotto (wich is a really good article
let me say). Now I do this in my code:


/apps/backend/modules/geslicsoft/actions/actions.class.php
--------------------------------------------------------------------
public function executeAdicionarAutor($request) {
        if (sfRequest::POST == $this->getRequest()->getMethod()) {
                $autor = new Autores();
                $autor->setNombreAutor($request->getParameter('nombre'));
                $autor->save();
                $this->redirect('@listar_autores');
        } else {
                $this->formulario_autores = new AutoresForm();
                return sfView::SUCCESS;
        }
}

And then in the template I have this other code:
/apps/backend/modules/geslicsoft/templates/AdicionarAutorSuccess.php
----------------------------------------------------------------------------------
<?php
        echo $formulario_autores, submit_tag('Adicionar');  ?>

After that I try the URL  
http://gestion.local/backend_dev.php/geslicsoft/AdicionarAutores
and I can see that the new Form Framework doesn't render my pages and
forms in XHTML compliant mode. I use Firefox and seeing inside the
generated code I only can see this:

<tr>
  <th><label for="autores_nombre_autor">Nombre autor</label></th>
  <td><input type="text" name="autores[nombre_autor]"
 id="autores_nombre_autor" /></td>
</tr>

I have something wrong or I miss some step?

Cheers and thanks in advance

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to