Skip to content
Snippets Groups Projects
Validation.php 1.03 KiB
Newer Older
  • Learn to ignore specific revisions
  • use App\Validation\FileRules as AppFileRules;
    use App\Validation\Rules as AppRules;
    
    use CodeIgniter\Config\BaseConfig;
    
    use CodeIgniter\Validation\CreditCardRules;
    use CodeIgniter\Validation\FileRules;
    use CodeIgniter\Validation\FormatRules;
    use CodeIgniter\Validation\Rules;
    use Myth\Auth\Authentication\Passwords\ValidationRules as PasswordRules;
    
    
    class Validation extends BaseConfig
    
         * Stores the classes that contain the rules that are available.
    
            Rules::class,
            FormatRules::class,
            FileRules::class,
            CreditCardRules::class,
            AppRules::class,
            AppFileRules::class,
            PasswordRules::class,
    
         * Specifies the views that are used to display the errors.
    
            'list' => 'CodeIgniter\Validation\Views\list',
            'single' => 'CodeIgniter\Validation\Views\single',
        ];