public function CreateShop($ssid) { $shop = new Shop(); $shop->title = \Yii::t('app', 'Main Shop'); $shop->description = \Yii::t('app', 'Generated by system Automatically'); $shop->ssid = $ssid; $shop->status = 0; // Status Open if ($shop->save(true)) { return $shop->id; } else { return false; } }