Reputation: 215
There is something like pre-render hook in symfony 1.4? I want to execute some code right before view render starts.
Upvotes: 2
Views: 1102
Reputation: 760
You can also set a filter before the view is rendered in the <app>/config/filters.yml
file. For further details, take a look here.
Upvotes: 1
Reputation: 10413
Symfony allows you to configure the view class used at the module level (module.yml):
all: # For all environments
view_class: myPHP
You could then create a myPHPView class and override the sfPHPView::render
method.
Upvotes: 0
Reputation: 3891
Try to use preExecute()
in action class: http://www.symfony-blog.co.uk/tag/preexecute/.
Upvotes: 0