Thanks a lot Jon.
that works......

But now i m facing the problem of file and directory permissions.
ok i will solve that myself.

On Thu, May 7, 2009 at 1:05 AM, Jonathan Wage <[email protected]> wrote:

> Add this above the task.
>
> chdir(sfConfig::get('sf_root_dir'));
>
> - Jon
>
> On Wed, May 6, 2009 at 2:24 PM, Dheeraj Kumar Aggarwal <
> [email protected]> wrote:
>
>> Hi all,
>>
>> Actually i want to run sfPropelBuildModelTask without using cli in my
>> actions class
>> What i have done exactly is
>> $dispatcher = sfContext::getInstance()->getEventDispatcher();
>> $formatter = new sfFormatter();
>> $task = new sfPropelBuildModelTask($dispatcher, $formatter);
>> $task->run();
>>
>>
>> Is there any bug, this is exactly what i have written. But it is giving me
>> the error.
>> *You must be in a symfony project directory.*
>>
>> I found no solution yet in symfony
>>
>> Thanks in advance.
>>
>>
>> On Wed, May 6, 2009 at 8:52 PM, Dheeraj Kumar Aggarwal <
>> [email protected]> wrote:
>>
>>> Hi
>>> i also have the same problem
>>> i tried this solution but i get an error
>>>
>>> You must be in a symfony project directory.
>>> please help me to solve this error.
>>>
>>>
>>> On Thu, Apr 30, 2009 at 11:24 PM, Jonathan Wage <[email protected]>wrote:
>>>
>>>> $task = new sfTaskClassName();
>>>> $arguments = array();
>>>> $options = array();
>>>> $task->run($arguments, $options);
>>>>
>>>> Arguments and options are the exact input you would give to the command
>>>> line.
>>>>
>>>>  - Jon
>>>>
>>>> On Thu, Apr 30, 2009 at 12:52 PM, fredlab <[email protected]>wrote:
>>>>
>>>>>
>>>>> Hey,
>>>>>
>>>>> I would like to set up a link in an application so that it executes a
>>>>> task that you normally execute using the CLI interface ?
>>>>>
>>>>> Is it possible to do it and how ?
>>>>>
>>>>> I tried to find a tuto on this but I did not succeed.
>>>>>
>>>>> Regards,
>>>>>
>>>>> Frédéric
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Jonathan H. Wage
>>>> Open Source Software Developer & Evangelist
>>>> sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Regards,
>>> Dheeraj
>>>
>>
>>
>>
>> --
>> Regards,
>> Dheeraj
>>
>>
>>
>
>
> --
> Jonathan H. Wage (+1 415 992 5468)
>
> Open Source Software Developer & Evangelist
> sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org
>
> >
>


-- 
Regards,
Dheeraj

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to