src/modules/setting/models/Setting.php
public function validateUrl ($attribute)
		{
			if (!$this->hasErrors())
			{
				if (filter_var($this->$attribute, FILTER_VALIDATE_URL) === false)
					$this->addError($attribute, Yii::tr('{attribute} is not a valid URL.', [ 'attribute' => $this->name ], 'setting'));
			}
		}
public function validateUrl ($attribute)
		{
			if (!$this->hasErrors())
			{
				if (filter_var($this->$attribute, FILTER_VALIDATE_URL) === false)
					$this->addError($attribute, Yii::tr('{attribute} is not a valid URL.', [ 'attribute' => $this->name ], 'setting'));
			}
		}
public function validateUrl ( $ attribute ) { if ( ! $ this -> hasErrors ( ) ) { if ( filter_var ( $ this -> $ attribute , FILTER_VALIDATE_URL ) === false ) $ this -> addError ( $ attribute , Yii :: tr ( '{attribute} is not a valid URL.' , [ 'attribute' => $ this -> name ] , 'setting' ) ) ; } }
Url validates.

@param string $attribute the attribute currently being validated
Url validates .