/** * Listen to the routing.load_configuration event * * @param sfEvent $event */ public function listenToRoutingLoadConfigurationEvent(sfEvent $event) { $event->getSubject()->prependRoute('knp_markdown_preview', new sfRoute('/markdown/preview', array('module' => 'knpMarkdown', 'action' => 'preview'), array(), array())); sfWidgetFormMarkdown::setRouting($event->getSubject()); }