2010-12-09 130 views

回答

1

您还可以在<app>/config/filters.yml文件中呈现视图之前设置过滤器。欲了解更多详情,请看看here

0

的Symfony可以让你configure the view class used在模块级(module.yml):

all:     # For all environments 
    view_class:   myPHP 

然后,您可以创建一个myPHPView类并重写sfPHPView::render方法。