I have not thought too much about the new admin generator, but based on
my experience, here are my answers:
On 9/13/10 11:35 AM, Matthias Nothhaft wrote:
Hi,
I also think it's a good idea to put the admin generator into a
separate bundle as everything is a bundle (I like that phrase).
So.. to me the question is how should the concept be changed for
Symfony2?
IMHO it is not necessary to have a generator.yml and auto generated
files in the cache.
right, the generator.yml file is great for simple admin modules, but as
soon as you need to do more complex things, you need to switch to
something else (PHP code mainly). So, people have a hard time switching
from one way of doing things to another.
> I would prefer something like that:
- create a command that only generates the module (controller,
templates) in a given bundle
- inherit the controller from a special base class that provides the
default implementation
Right, that should be the best thing to do (annotations can probably
help here too).
- forms can completely be configured in the form class and by ways the
validation component already provides
The new entities and forms will probably be helpful
- for the list I think we should now introduce a real data grid
Several people said they would work on one, but nothing really never
happened.
- for things like "object browser" and other more advanced "widgets" I
think all can simply be provided by appropriate form fields
I'm working on a prototype to implement field representations as
templates. We will see how it goes, but this can simplifies the admin
template customization a lot.
Fabien
- somehow there should probably be some magic to map the db schema of
a model to the form fields
What do you think?
regards,
Matthias
--
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 developers" group.
To post to this group, send email to symfony-devs@googlegroups.com
To unsubscribe from this group, send email to
symfony-devs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en