slave_db; } /** * {@inheritdoc} */ public function rules() { return [ //[['date'], 'safe'], //[['section', 'error_text'], 'required'], //[['error_text'], 'string'], //[['section'], 'integer'], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'date' => 'Date', 'section' => 'Section', 'error_text' => 'Error Text', ]; } public static function addlog($section,$text,$desc = '') { $logsModel = new LogEippResponse(); $logsModel->indx = $section; $logsModel->response = $text; $logsModel->desc = $desc; $logsModel->save(); } }