[symfony-users] Re: Problem with model in Event Management Plugin

2009-11-11 Thread juro
Weird, I have enabled it in the ProjectConfiguration but when I run it from the command line, I get a Task "generate:plugin" is not defined I have also followed this tutorial: http://www.symfony-project.org/blog/2008/11/08/additional-tasks-to-streamline-your-workflow So how do I enable this?

[symfony-users] Re: Problem with model in Event Management Plugin

2009-11-10 Thread Nicolas Perriault
On Tue, Nov 10, 2009 at 8:33 PM, juro wrote: > Thank you for the tutorial, is the sfTaskExtraPlugin compatible with > 1.3? Sure, I'm using it on a 1.3 powered project of mine with no pb :) ++ -- Nicolas Perriault http://prendreuncafe.com - http://symfonians.net Mobile: +33 660 92 08 67 --~-

[symfony-users] Re: Problem with model in Event Management Plugin

2009-11-10 Thread juro
Thank you for the tutorial, is the sfTaskExtraPlugin compatible with 1.3? On Nov 10, 3:45 pm, Nicolas Perriault wrote: > On Tue, Nov 10, 2009 at 11:58 AM, juro wrote: > > Is it possible to use an admin-generated module for the plugin? > > Sure, you have to follow these simple steps (let's imagi

[symfony-users] Re: Problem with model in Event Management Plugin

2009-11-10 Thread juro
As I wrote, it doesn't make sense. A calendar is a specific view of a list of events, not the actual management, i.e. you can manage events, not a calendar. On Nov 10, 7:59 pm, Richtermeister wrote: > I think sfCalendarEvent makes a lot of sense. It suggests an event > within a calendar (suggest

[symfony-users] Re: Problem with model in Event Management Plugin

2009-11-10 Thread Richtermeister
I think sfCalendarEvent makes a lot of sense. It suggests an event within a calendar (suggesting properties such as date, time, duration), as opposed to a framework event. Daniel On Nov 10, 5:45 am, Nicolas Perriault wrote: > On Tue, Nov 10, 2009 at 11:58 AM, juro wrote: > > Is it possible to

[symfony-users] Re: Problem with model in Event Management Plugin

2009-11-10 Thread Nicolas Perriault
On Tue, Nov 10, 2009 at 11:58 AM, juro wrote: > Is it possible to use an admin-generated module for the plugin? Sure, you have to follow these simple steps (let's imagine you have a myPlugin plugin): 1. create a module in your plugin, for example by using the excellent Kris Wallsmith's sfTaskE

[symfony-users] Re: Problem with model in Event Management Plugin

2009-11-10 Thread juro
Is it possible to use an admin-generated module for the plugin? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe

[symfony-users] Re: Problem with model in Event Management Plugin

2009-11-09 Thread Nicolas Perriault
On Mon, Nov 9, 2009 at 8:59 PM, juro wrote: > ?? Another idea: prefix your class names with two or three characters of your choice, eg. if your name is John Doe: jdDoctrineCalendarPlugin jdEvent.class.php jdCalendar.class.php ++ -- Nicolas Perriault http://prendreuncafe.com - http://symfoni

[symfony-users] Re: Problem with model in Event Management Plugin

2009-11-09 Thread Nicolas Perriault
On Mon, Nov 9, 2009 at 8:39 PM, juro wrote: > sfEventManagementPlugin > > Event.class.php > Calendar.class.php Try to always prefix your symfony-related class names with "sf" or something else. Here you could use sfCalendar and sfCalendarEvent. Also, if your plugin is tied with an ORM, try to

[symfony-users] Re: Problem with model in Event Management Plugin

2009-11-09 Thread juro
sfCalendar makes sense sfCalendarEvent doesn't sfDoctrineEventManagementPlugin sfDoctrineEMEvent.class sfDoctrineEMCalendar.class ?? On Nov 9, 9:56 pm, Nicolas Perriault wrote: > On Mon, Nov 9, 2009 at 8:39 PM, juro wrote: > > sfEventManagementPlugin > > > Event.class.php > > Calendar.

[symfony-users] Re: Problem with model in Event Management Plugin

2009-11-09 Thread juro
I like the feedback I am getting :) I have (currently) two classes, Event and Calendar any ideas regarding the naming then? sfEventManagementPlugin Event.class.php Calendar.class.php ?? On Nov 9, 7:18 pm, Richtermeister wrote: > More specifically, I'd name the plugin sfEventCalendarPlugin an

[symfony-users] Re: Problem with model in Event Management Plugin

2009-11-09 Thread Richtermeister
More specifically, I'd name the plugin sfEventCalendarPlugin and the model classes sfCalendarEvent. Just my 2 cents. Daniel On Nov 9, 12:35 am, Nicolas Perriault wrote: > On Mon, Nov 9, 2009 at 8:00 AM, juro wrote: > > Class "sfEvent" must be a child class of Doctrine_Record > > There's alrea

[symfony-users] Re: Problem with model in Event Management Plugin

2009-11-09 Thread Richtermeister
My suggestion would be sfCalendarEvent to avoid confusion. Looking forward to play with it! :) Daniel On Nov 9, 12:35 am, Nicolas Perriault wrote: > On Mon, Nov 9, 2009 at 8:00 AM, juro wrote: > > Class "sfEvent" must be a child class of Doctrine_Record > > There's already a sfEvent class i

[symfony-users] Re: Problem with model in Event Management Plugin

2009-11-09 Thread Nicolas Perriault
On Mon, Nov 9, 2009 at 8:00 AM, juro wrote: > Class "sfEvent" must be a child class of Doctrine_Record There's already a sfEvent class in symfony (the one used by the event dispatcher), so you have a naming conflict there. Rename your model name to something else should solve your problem. ++