I try to make custom field for admin generator. In my model (Art.php e.g.) I add methods
- Code: Select all
public function getTags() {
...
return 'string';
}
public function setTags($v) {
}
To my admin generator I add:
- Code: Select all
edit:
display: [title, content, tags, category_id, created_at]
fields:
tags: { name: Tags }
content: { params: '<?php echo sfConfig::get('app_tinymce_article_options'); ?>' }
I have the field "Tags" in edit view but this field is gray - inactive. I can see the value of this field, but I can't modified it.
Thank You for any help.
