title: Yii2 - Make Form Validator For URL Type To Skip "http://" in the start
body: <p>This is how my yii2 model looks like:-</p>
  
  <pre><code>namespace app\models;
  
  use Yii;
  use yii\base\Model;
  
  
  class UrlForm extends Model
  {
      public $url;
      /**
       * @return array the validation rules.
       */
      public function rules()
      {
          return [            
              [['url'], 'required'],
              ['url', 'url'],            
          ];
      }
  
  }
  </code></pre>
  
  <p>I want it to approve the url if use has not written 'http://' in the start.</p>
  
  <p><strong>Example:-</strong></p>
  
  <p><code>stackoverflow.com</code> should work fine.</p>
  
  <p><code>http://stackoverflow.com</code> should work fine.</p>
  
  <p><strong>Current Status:-</strong></p>
  
  <p><code>stackoverflow.com</code> not accepted.</p>
  
  <p><code>http://stackoverflow.com</code> is accepted..</p>