Hi all, this is my first experience with generate the backend. With
symfony 1.1.
I'm following the Definitive Guide and I have some problems.
Firstly, I generate a model Challenge and if I do:
symfony propel:init-admin backend challenge Challenge
The symfony only generate:
void actions/actions.class.php, and config/generator.yml and nothing
in the templates/.
If I want to generate de CRUD I have to do:
symfony propel:build-forms
symfony propel:generate-crud backend challenge Challenge
Now, I have the CRUD functions in actions/ and generate the templates/
indexSuccess & editSuccess.
The Definitive Guide says nothing about build-forms, and generate-
crud.
Secondly, now I try to modify the generate.yml to change the list and
generate the filters, etc. But symfony seems that doesn't read the
generator.yml because always show the same table list with all fields
of the model and:
- Don't change the title of the list
- Don't show the filter
The generator.yml is:
<pre>
generator:
class: sfPropelAdminGenerator
param:
model_class: Challenge
theme: default
fields:
id: { name: Chal.Id }
title: { name: Título }
list:
title: Listado de Challenges
display: [id,title]
filters: [id,title]
fields:
id: { name: Chal.Id }
title: { name: Título }
max_per_page: 10
</pre>
I undestand the reason why generator doesn't work...
I tried to re-generate the admin, the crud-functions, and always I am
cleaning cache "symfony cc".
Can anyone help me?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---