There is no built-in mechanism, but a little creativity means that you can do it just about anywhere in your code, from view.yml to layout.php for each individual action.
The view.yml method is quite simple:
Applications / interface / configurations / view.yml:
stylesheets: [main?v=<?php echo time() ?>, reset?v=<?php echo time() ?>, layout?v=<?php echo time() ?>]
Although I think this is a little too active, and I tend to use either the SVN version or the general project version number:
stylesheets: [main?v=<?php echo sfConfig('app_project_version') ?>, reset?v=<?php echo sfConfig('app_project_version') ?>, layout?v=<?php echo sfConfig('app_project_version') ?>]
where it is app_project_versioninstalled in applications /frontend/config/app.yml. The layout.php and actionSuccess.php methods should be fairly easy:
<?php use_stylesheet('blah?v='.sfConfig::get('app_project_version')); ?>
Raise source
share