Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Requires: phpFox version 4.6.0 or higher.

Table of Contents

Supported Types

  • string
  • large_string
  • password
  • integer
  • boolean
  • currency
  • select
  • array
  • multi_text

...

Code Block
php
php
// file name: validator.admincp_settings_ad.php

$aValidation = [
    'ad_multi_ad_count'] => [ // setting var name
        'def' => 'int:required', //the setting is required and must be an integer number
        'min' => '1', // the in value for this setting is 1.
        'title' => _p('"Ads min Multi-Ad Location" must be greater than 0'), thrown message when admin enter invalid value.
    ]
];