I want access to symfony’s libraries of my project into some other php files. e.g. sfConfig , Doctrine_Query etc. How to do that?
I want access to symfony’s libraries of my project into some other php files.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Unfortunately, most of the symfony components cannot be run independently in SF 1.4. Most of the changes in SF2 revolve around being able to use the different components on their own, so if you aren’t too far along you might consider switching.
It sounds, though, like you are trying to extend an existing project. There is some good news. Doctrine is its own library, not part of the symfony core, so you should be able to interface with it directly. Accessing the config is more difficult, but if its necessary you can parse in the config file. If you don’t want to figure out how to parrse YAML, you can grab the Symfony 2 YAML bundle and run that independently to parse the config.