Possibly not important, but I don't think you need that last comma:
'mensaje' => new sfWidgetFormTextarea(), In your PHP error logs are you seeing any other errors or warnings or notices? On Sep 25, 6:33 pm, Guelmis <[email protected]> wrote: > Hello everyone: > I'm trying to create my first form with symfony 1.2, I am > following the instruction byhttp://www.librosweb.es/symfony_formularios/. So > I created a > ContactoForm class that extends of sfForms like this one and I placed it at > > /var/www/myfirstproject/lib/form/ContactoForm.class.php > > class ContactoForm extends sfForm > { > public function configure() > { > $this->setWidgets(array( > 'nombre' => new sfWidgetFormInput(), > 'email' => new sfWidgetFormInput(), > 'mensaje' => new sfWidgetFormTextarea(), > )); > } > > } > > I also created a module at frontend called contacto > > frontend/modules/contacto and this is my action.class.php > > class contactoActions extends sfActions > { > public function executeIndex() > { > $this->formulario = new ContactoForm(); //this is the line that > launches the Fatal error > } > > } > > and in frontend/modules/contacto/templates/indexSuccess.php > > <form action="<?php echo url_for('contacto/enviar') ?>" method="POST"> > <table> > <?php echo $formulario ?> > <tr> > <td colspan="2"> > <input type="submit" /> > </td> > </tr> > </table> > </form> > > But here is the problem, I did it exactly as I was told to but now in > the navigator I got this error: > *Fatal error*: Class 'ContactoForm' not found in > */var/www/myfirstproject/apps/frontend/modules/contacto/actions/actions.cla > ss.php* > on line *15* , could someone please help me???? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
