I created a new version of sfWidgetFormPropelSelect. I put
sfWidgetFormPropelSelectForTeams.class.php in the /lib directory. The
class name is sfWidgetFormPropelSelectForTeams.

If I read here:

http://www.symfony-project.org/book/1_2/19-Mastering-Symfony-s-Configuration-Files#chapter_19_extending_the_autoloading_feature

I see this:

"Autoloading works for all .php files containing classes and/or
interfaces.

By default, classes stored in the following directories in your
projects benefit from the autoloading automatically:

myproject/lib/
myproject/lib/model
myproject/apps/frontend/lib/
myproject/apps/frontend/modules/mymodule/lib"

So shouldn't my file autoload?

In my child form class, I have this:

  public function configure()
  {
        $this->widgetSchema['teamnumber'] = new
sfWidgetFormPropelSelectForTeams(array('model' => 'NewTeam',
'add_empty' => true, 'choices' => 'Choose a team'));
  }

I get this error:

Fatal error: Class 'sfWidgetFormPropelSelectForTeams' not found in /
home/lawrence/public_html/bocahoops/lib/form/NewCoachForm.class.php on
line 18

Why isn't the autoloading working?

--~--~---------~--~----~------------~-------~--~----~
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 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to