No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

Validation.php 1.2KB

hace 2 años
123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace Config;
  3. use CodeIgniter\Config\BaseConfig;
  4. use CodeIgniter\Validation\CreditCardRules;
  5. use CodeIgniter\Validation\FileRules;
  6. use CodeIgniter\Validation\FormatRules;
  7. use CodeIgniter\Validation\Rules;
  8. class Validation extends BaseConfig
  9. {
  10. //--------------------------------------------------------------------
  11. // Setup
  12. //--------------------------------------------------------------------
  13. /**
  14. * Stores the classes that contain the
  15. * rules that are available.
  16. *
  17. * @var string[]
  18. */
  19. public $ruleSets = [
  20. Rules::class,
  21. FormatRules::class,
  22. FileRules::class,
  23. CreditCardRules::class,
  24. \Myth\Auth\Authentication\Passwords\ValidationRules::class,
  25. ];
  26. /**
  27. * Specifies the views that are used to display the
  28. * errors.
  29. *
  30. * @var array<string, string>
  31. */
  32. public $templates = [
  33. 'list' => 'CodeIgniter\Validation\Views\list',
  34. 'single' => 'CodeIgniter\Validation\Views\single',
  35. ];
  36. //--------------------------------------------------------------------
  37. // Rules
  38. //--------------------------------------------------------------------
  39. }