【发布时间】:2011-12-14 03:59:09
【问题描述】:
所以,这是我的小问题:我已经使用 Symfony 管理员生成器生成了一个管理员,但我需要显示一个链接(或一个按钮),可以单击它来打开 C.V.文件。
到目前为止,我有:
generator:
class: sfDoctrineGenerator
param:
model_class: Client
theme: admin
non_verbose_templates: true
with_show: false
singular: ~
plural: ~
route_prefix: client
with_doctrine_route: true
actions_base_class: sfActions
config:
actions: ~
fields:
job_titles_list: { label: Emplois disponnibles }
created_at: { label: Cree le }
updated_at: { label: Mis a jour le }
list:
display: [=name, firstname, experience, connexe, formation, created_at, cv_file]
title: Gestion des prospects
filter:
display: [name, firstname, phone, cellphone, postalcode, experience, connexe, formation, job_titles_list, created_at, updated_at]
form: ~
edit:
fields:
formation: { label: Formation }
experience: { label: Experience }
connexe: { label: Connexe }
new: ~
如您所见,在列表/显示中,我有一个 cv_file,它给了我一个链接(来自数据库)。我需要使用链接呈现此列。
顺便说一句,我对 Symfony 一无所知,所以要温柔;)
非常感谢!
【问题讨论】:
标签: php symfony1 admin-generator