Skip to content

Instantly share code, notes, and snippets.

@pborreli
Created September 1, 2010 15:52
Show Gist options
  • Save pborreli/560899 to your computer and use it in GitHub Desktop.
Save pborreli/560899 to your computer and use it in GitHub Desktop.
removing admin gen css files at app/project level
<?php
class privateConfiguration extends sfApplicationConfiguration {
public function configure() {
$this->dispatcher->connect('view.configure_format', array($this, 'listenToViewConfigureFormatEvent'));
}
public function listenToViewConfigureFormatEvent(sfEvent $event) {
$response = $event['response'];
$response->removeStylesheet('/sfDoctrinePlugin/css/global.css');
$response->removeStylesheet('/sfDoctrinePlugin/css/default.css');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment