M
M
Mikha Pankratov2015-12-07 23:55:33
Yii
Mikha Pankratov, 2015-12-07 23:55:33

How to pull data for one field with ajax?

Good afternoon,
How to pull data for one field with ajax?
Test field, enter numbers -
array - table::find()->select(['field1', 'field2', field3'])->table2.leftJoin('table2', '`table2`.`field1` = ` table`.`field3`')->
asArray ()->all()
If it helps to understand what I mean: before that there was an autocomplete - it pulls a very large data packet. Here it would be necessary to simplify this matter with Ajax.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrew, 2015-12-08
@frmax

We take Typeahead + Javascript, write our own handler, write our own action .. and there will be happiness ...
something like this ..

A
Alexander N++, 2015-12-08
@sanchezzzhak

can insert a limit into the request?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question