public function getStylesheets() { if (!$this->getUseJqueryValidation()) { return parent::getStylesheets(); } if (!$this->getJqueryValidationGenerator()->getRulesGenerated()) { $this->getJqueryValidationGenerator()->generateJavascript(); } return array_merge($this->getJqueryValidationGenerator()->getStylesheets(), parent::getStylesheets()); }
/** * Gets the Stylesheets paths associated with the form. * * @see scr/www/application/lib/vendor/symfony/lib/form/sfForm#getStylesheets() */ public function getStylesheets() { /* $this->formStylesheets = array( 'uni-form/uni-form.css', //sfConfig::get('app_uniform_jquery'), 'uni-form/default.uni-form.css' //sfConfig::get('app_uniform_styling'), ); */ return array_unique(array_merge($this->formStylesheets, parent::getStylesheets())); }