2010-12-09 133 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方法。