public function getStylesheets()
 {
     if (!$this->getUseJqueryValidation()) {
         return parent::getStylesheets();
     }
     if (!$this->getJqueryValidationGenerator()->getRulesGenerated()) {
         $this->getJqueryValidationGenerator()->generateJavascript();
     }
     return array_merge($this->getJqueryValidationGenerator()->getStylesheets(), parent::getStylesheets());
 }
Exemplo n.º 2
0
 /**
  * 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()));
 }