Answer the question
In order to leave comments, you need to log in
How to set conditions when adding to the database in YII?
This is how I put it in the database
$list=new MyList;
$list->newid = $com;
$list->title='тестовая запись';
$list->description='содержимое тестовой записи';
$list->save();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question