If you want a module not bound to a model class then you use:

symfony generate:module [application] [newmodulename]

which will create:

application
  -- modules
    -- newmodulename
      -- actions
        actions.class.php
      -- templates
        indexSuccess.php

If however you want to generate a module bound to a model class you will
use:

symfony doctrine:generate-module [application] [newmodulename] [modelclass]

which will create all the templates, form classes and actions needed to
perform basic CRUD on your model.

Is this all cleared up now? Creating your own module directory manually
works but is so much more laborious

On Tue, Oct 5, 2010 at 6:30 PM, Diego Bello <[email protected]> wrote:

> On Mon, Oct 4, 2010 at 4:34 PM, Martin Ibarra Cervantes
> <[email protected]> wrote:
> > Hi, i need a empty module on my application but when try this
> >
> > m...@sopias ~/code/Projects/php/retratos/trunk $ ./symfony
> > doctrine:generate-module public feed
> >
> >
> > display this error
> >
> > symfony doctrine:generate-module [--theme="..."] [--generate-in-cache]
> > [--non-verbose-templates] [--with-show] [--singular="..."]
> > [--plural="..."] [--route-prefix="..."] [--with-doctrine-route]
> > [--env="..."] [--actions-base-class="..."] application module model
> >
> >
> > you can help me.
> >
> > --
> > If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
> >
> > 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]<symfony-users%[email protected]>
> > For more options, visit this group at
> > http://groups.google.com/group/symfony-users?hl=en
> >
>
> If you need a module not binded to the model or to any table, you can
> just create a directory inside the "modules", with the following
> structure:
>
> modules
> `-- empty_module
>     `-- actions
>     `-- templates
>
> That's what I did for a static content module.
>
> Regards,
> --
> Diego Bello Carreño
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> 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]<symfony-users%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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