private function client_validation($script) { $context = $this->getContext();
$validatorManager = new sfValidatorManager(); $validatorManager->initialize($this->getContext()); // validation file (validate/$script_<page_num>.yml) $validationConfig = $context->getModuleName() . '/' . sfConfig::get('sf_app_module_validate_dir_name') . '/' . $script .'_' . ($this->getContext()->getRequest()->getParameter("page") - 1) . '.yml'; $validateFile = sfConfigCache::getInstance()->checkConfig( sfConfig::get('sf_app_module_dir_name').'/'.$validationConfig, true); if ($validateFile == NULL) return true; require($validateFile); return $validatorManager->execute(); } -----Original Message----- From: symfony-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Richtermeister I have a question to what was said earlier: How do you switch validation files within the action? I would love to use a "pure" address .yml file to validate the address part of forms, and then a custom file for the rest of the fields. Is that possible? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---