Skip to content

Instantly share code, notes, and snippets.

@fivestar
Created December 8, 2010 08:28
Show Gist options
  • Save fivestar/733032 to your computer and use it in GitHub Desktop.
Save fivestar/733032 to your computer and use it in GitHub Desktop.
<?php
class frontendConfiguration extends sfApplicationConfiguration
{
public function configure()
{
$this->dispatcher->connect('template.filter_parameters', array($this, 'filterTemplateParameters'));
}
public function filterTemplateParameters(sfEvent $event, $parameters)
{
$parameters['variable_name'] = 'variable_value';
return $parameters;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment