Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
root Bug Fixed
Latest commit ab1fd64 Jun 12, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Bug Fixed Jun 12, 2019 readMe changed May 24, 2019
composer.json S3Upload Added May 24, 2019

General Setting - V1

General Setting


The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist yii2generalsetting/yii2generalsetting "*"

or add

"yii2generalsetting/yii2generalsetting": "*"

to the require section of your composer.json file.


Once the extension is installed, simply use it in your code by :

'components' => [
    'getsettings' => [
        'class' => 'vendor\yii2generalsetting\yii2generalsetting\src\components\Groovysettings',

'modules' => [
    'allsettings' => [
        'class' => 'vendor\yii2generalsetting\yii2generalsetting\src\modules\allsettings\Module',

open link YOUR_SITE_URL/allsetting

Get Data 

Yii::$app->getsettings->Getallsttings('json'); //get json format
Yii::$app->getsettings->Getallsttings('array'); //get array format

//Single Value By Name
$apiKey = Yii::$app->getsettings->Getcategorysingleconfig('Front Settings','Google Key'); //Front Settings = Setting Name and Google Key = Field Name

if You old user so please add ENUM (textarea) in s_type (all_setting_fields table )
Other Wise got a error 
Thank you
You can’t perform that action at this time.