Skip to content

Instantly share code, notes, and snippets.

@bshaffer
Created April 28, 2011 19:42
Show Gist options
  • Save bshaffer/947155 to your computer and use it in GitHub Desktop.
Save bshaffer/947155 to your computer and use it in GitHub Desktop.
Example Theme Configuration
<?php
class sfMyThemeThemeConfiguration extends sfThemeConfiguration
{
protected
$theme = 'my-theme';
public function filesToCopy()
{
$files = array(
'MODULE_DIR/actions' => 'THEME_DIR/skeleton/actions',
'MODULE_DIR/config/generator.yml' => 'THEME_DIR/skeleton/config/generator.yml',
'MODULE_DIR/templates' => 'THEME_DIR/skeleton/templates',
'APP_DIR/templates/_flashes.php' => 'THEME_DIR/templates/_flashes.php',
'PROJECT_DIR/web/js/'. $this->options['module']. '_theme.js' => 'THEME_DIR/templates/javascript_template.js',
);
return $files;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment