src/modules/setting/models/Setting.php
public function validatePath ($attribute)
		{
			if (!$this->hasErrors())
			{
				if (!file_exists($this->$attribute))
					$this->addError($attribute, Yii::tr('{attribute} does not exist.', [ 'attribute' => $attribute ], 'setting'));
				if ($this->rule != '')
				{
					$rule = json_decode($this->rule, true);
					if (isset($rule[ 'writable' ]) and $rule[ 'writable' ] == true)
					{
						if (!is_writable($this->$attribute))
							$this->addError($attribute, Yii::tr('Path is not writable.', [], 'setting'));
					}
				}
			}
		}
public function validatePath ($attribute)
		{
			if (!$this->hasErrors())
			{
				if (!file_exists($this->$attribute))
					$this->addError($attribute, Yii::tr('{attribute} does not exist.', [ 'attribute' => $attribute ], 'setting'));
				if ($this->rule != '')
				{
					$rule = json_decode($this->rule, true);
					if (isset($rule[ 'writable' ]) and $rule[ 'writable' ] == true)
					{
						if (!is_writable($this->$attribute))
							$this->addError($attribute, Yii::tr('Path is not writable.', [], 'setting'));
					}
				}
			}
		}
public function validatePath ( $ attribute ) { if ( ! $ this -> hasErrors ( ) ) { if ( ! file_exists ( $ this -> $ attribute ) ) $ this -> addError ( $ attribute , Yii :: tr ( '{attribute} does not exist.' , [ 'attribute' => $ attribute ] , 'setting' ) ) ; if ( $ this -> rule != '' ) { $ rule = json_decode ( $ this -> rule , true ) ; if ( isset ( $ rule [ 'writable' ] ) and $ rule [ 'writable' ] == true ) { if ( ! is_writable ( $ this -> $ attribute ) ) $ this -> addError ( $ attribute , Yii :: tr ( 'Path is not writable.' , [ ] , 'setting' ) ) ; } } } }
Path validates.

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