Le 10/05/2011 07:53, Inori a écrit :
What I have: a class named someClass in a file named someFile.php in a
folder named someFolder.
I placed that folder in /vendor (so path to someFile.php is now /
vendor/someFolder/someFile.php ). The file doesn't  use namespaces.

What I want: add that class to autoload so I could do $class = new
someClass(); in the controller class of my bundle (located in /src ).

What do I need to do to achieve this?

This is probably a stupid question and I'm sorry for that in advance.

The Symfony2 autoloader is able to autoload classes following the PSR-0 standard. If it is not the case of your class, you will need to register another autoloader for it.

--
Christophe | Stof

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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