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 » support » symfony 1.3 and 1.4 » [solved] admin generator - disable creating new object
[solved] admin generator - disable creating new object [message #103146] Tue, 27 July 2010 19:08 Go to next message
tkoomzaaskz  is currently offline tkoomzaaskz
Messages: 101
Registered: February 2008
Location: Poland
Senior Member
I want to know if there's any way to disable creating new object from the generator.yml level? It is possible just to override the cached template (and delete the linkToNew), but I'd like to disable it in a nice way, if it's possible.

[Updated on: Wed, 28 July 2010 10:40]


symfony-world blog
Re: admin generator - disable creating new object [message #103159 is a reply to message #103146 ] Wed, 28 July 2010 10:11 Go to previous messageGo to next message
valaraukar  is currently offline valaraukar
Messages: 7
Registered: June 2010
Location: Marseille, France
Junior Member
Yes, it's possible.

//apps/backend/modules/mymodule/config/generator.yml
[...]
config:
  actions: ~
  fields:  ~
  list:
    actions: []

[...]


After that, there's not actions link, but you can select your owns.
Re: admin generator - disable creating new object [message #103163 is a reply to message #103159 ] Wed, 28 July 2010 10:40 Go to previous message
tkoomzaaskz  is currently offline tkoomzaaskz
Messages: 101
Registered: February 2008
Location: Poland
Senior Member
That's exactly what I wanted! Thanks a lot Smile


symfony-world blog
Previous Topic:Doctrine 65% Performance Hit
Next Topic:doctrine execute only returns one row
Goto Forum:
  

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