src/controllers/SettingsController.php
public function actionGet ($name)
		{
			$class = $this->_modelClass;
			$object = $class::find()->select('name,value,description')->where([ 'name' => $name ])->asArray()->one();
			if ($object == null)
			{
				Console::printColor('Setting not found.', 'red');
				Yii::$app->end();
			}
			Console::printTable([ $object ], [ 'Name', 'Value', 'Description' ]);
		}
public function actionGet ($name)
		{
			$class = $this->_modelClass;
			$object = $class::find()->select('name,value,description')->where([ 'name' => $name ])->asArray()->one();
			if ($object == null)
			{
				Console::printColor('Setting not found.', 'red');
				Yii::$app->end();
			}
			Console::printTable([ $object ], [ 'Name', 'Value', 'Description' ]);
		}
public function actionGet ( $ name ) { $ class = $ this -> _modelClass ; $ object = $ class :: find ( ) -> select ( 'name,value,description' ) -> where ( [ 'name' => $ name ] ) -> asArray ( ) -> one ( ) ; if ( $ object == null ) { Console :: printColor ( 'Setting not found.' , 'red' ) ; Yii :: $ app -> end ( ) ; } Console :: printTable ( [ $ object ] , [ 'Name' , 'Value' , 'Description' ] ) ; }
Gets setting with given name.

@param $name
Gets setting with given name .