Code snippets for symfony 1.x


Display Primary Key in Admin Generator Edit Form

By default, we can't display primary keys in the admin generator edit view.

But I wanted to do just that.

Here is an example for the module/table "article", and the primary key column "id" :

Beware of the tricky spelling of the partial name in the generator.yml file if, like me, you like underscores...

by Vincent Texier on 2007-08-01, tagged admin  form  generator 

Comments on this snippet

gravatar icon
#1 waouf on 2009-09-15 at 10:19

I don't know which admin generator version it is for, but I tried to use it with Symfony 1.2.8 (Doctrine) and I get the following message: "Call to undefined function input_tag()".