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

--~--~---------~--~----~------------~-------~--~----~
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