Hey Sid,
I would not rely on the generator.yml to configure which form fields
are displayed, since it only hides fields from the interface.. as far
as the form is concerned you end up with empty form fields if a field
is not displayed and the form is submitted.
As shown above the solution is to h
hi,
i think that you have only to change your generator.yml
edit:
display: [descr, is_active]
new:
display: [image, descr, is_active]
don't forget you have to clear the cache for the prod controller after
changin generator.yml
and verify the indentation
2009/8/27 José Nahuel Cuesta Luengo
>
>
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Sid Bachtiar escribió:
> Hi all,
>
> I'm trying to understand the new admin generator for Symfony 1.2
>
> I have a field 'image', and I don't want people to edit it, only when
> inserting new record.
>
> Do I have to create separate form class for
A bit more info, my schema:
email_banner:
id: { type: integer, primaryKey: true, autoIncrement: true }
image: { type: varchar(255), required: true, unique: true }
descr: { type: longvarchar }
is_active: { type: boolean, required: true, default: true }
created_at:
When I edi