I have tried to use a parameter in my app.yml file inside a task in symfony 1.4, but it doesnt get the value.
sfConfig::get()
Do you have any advice?
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.
By default tasks are ran only with a project – meaning they don’t have access to your settings in app.yml. You either need to:
explicitly pass an app parameter every time you call the task, this is done like:
add it as a default parameter in your
configure():