Created
April 28, 2011 19:42
-
-
Save bshaffer/947155 to your computer and use it in GitHub Desktop.
Example Theme Configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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