Код: Выделить всё
public function getAllMessages()
{
$allMessages = Message::find()
->where(['=', 'phone', $this->phone])
->all();
return $allMessages;
}
Код: Выделить всё
Подробнее здесь: [url]https://stackoverflow.com/questions/74466600/call-a-route-to-load-a-list-of-data-using-js[/url]
Мобильная версия