This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » legacy support » symfony 1.1 » tasks within a module
tasks within a module [message #90120] Wed, 16 December 2009 21:19 Go to next message
nnichols
Messages: 13
Registered: October 2009
Location: London
Junior Member
Hi there,

Is it possible to have tasks loaded from within a module?

I have created a task in /apps/frontend/modules/<module_name>/lib/tasks with namespace test and name blah. When I tru to run ./symfony test:blah I get the 'There are no tasks defined in the "test" namespace.' error message.

I created a similarly named test task in the global lib dir and it worked fine.

Any help and/or suggestions will be very much appreciated.

Cheers
Re: tasks within a module [message #90163 is a reply to message #90120 ] Thu, 17 December 2009 17:12 Go to previous message
nico_somb  is currently offline nico_somb
Messages: 3
Registered: November 2008
Location: Lille, France
Junior Member
Hi,

I don't think it's possible.

But why don't you use the "--dir" parameter when you create your task ? Like that, you can organize your tasks in lib/tasks/ folder, with your module architecture.

Previous Topic:Problem with data selection
Next Topic:Symfony 1.2 doctrain (Check box issue)
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software