Example #1
0
 private function getkeyConfig()
 {
     $data = Params::where(['KEY' => 'WF_TASK_ID'])->select('NUMBER_VALUE')->first();
     $key = $data->NUMBER_VALUE == "" ? 0 : $data->NUMBER_VALUE + 1;
     Params::where(['KEY' => 'WF_TASK_ID'])->update(['NUMBER_VALUE' => $key]);
     return $key;
 }
Example #2
0
 public function actionSubastas()
 {
     $products = Product::findAll(['status' => 'ACTIVE', 'auction' => 'YES']);
     $auctions = Auction::findAll(['status' => 'ACTIVE']);
     $time = Params::findOne(['name' => 'auction_time'])->value;
     return $this->render('auction', ['auctions' => $auctions, 'time' => $time]);
 }