예제 #1
0
파일: Create.php 프로젝트: biggtfish/cms
 /**
  * Set form validation.
  *
  * @param FieldSet $content Fieldset object.
  */
 protected function _setValidation($content)
 {
     $content->getValidation()->add('controller', new Regex(['pattern' => '/$|(.*)Controller->(.*)Action/', 'message' => 'Wrong controller name. Example: NameController->someAction']));
 }