This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » legacy support » symfony 1.1 » First example in Forms Book. Error autoloading ContactForm class
First example in Forms Book. Error autoloading ContactForm class [message #60140] Thu, 04 September 2008 10:24 Go to previous message
Ser5 [ru]  is currently offline Ser5 [ru]
Messages: 3
Registered: September 2008
Junior Member
I'm trying to start learning symfony forms.
Now I'm here: http://www.symfony-project.org/book/forms/1_1/en/01-Form-Cre ation

I'm running symfony 1.1.1 on WinXP SP2, Apache 2.2.

My project resides in
D:\PP\PHP\symfony\test\

I've put ContactForm in
D:\PP\PHP\symfony\test\apps\main\lib\form\ContactForm.class. php
file

then generated "contact" module by using
"php symfony generate:module main contact"

and put this
  public function executeIndex($request)
  {
    $this->form = new ContactForm();
  }

into D:\PP\PHP\symfony\test\apps\main\modules\contact\actions\act ions.class.php

When a try to launch main_dev.php/contact
I see an error:
Quote:

Fatal error: Class 'ContactForm' not found in D:\PP\PHP\symfony\test\apps\main\modules\contact\actions\act ions.class.php on line 20


So, what should I do?

[Updated on: Thu, 04 September 2008 10:26]

Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:[SOLVED] sfWidgetFormI18nSelectCountry default value
Next Topic:propel:build-forms builds no forms with 2 databases
Goto Forum:

  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software