/** * 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()); }
/** * Sets a routing instance * * @param sfRouting $routing */ public static function setRouting(sfRouting $routing) { self::$routing = $routing; }