V
V
Vladimir2017-01-06 04:18:00
Yii
Vladimir, 2017-01-06 04:18:00

How to do advanced search yii2?

Good day! There are two tables (house, apartment) and you need to do an advanced search on the site using these tables. For example, there is a form:

I want to: (Buy | Sell)
Property Type: (House | Apartment)
City: (San Andreas | Vice City)

It is necessary that when choosing a House or Apartment, different requests are fulfilled. In ActiveRecord, you need to use a model, and I get two of them. Tell me how to do it right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Makarov, 2017-01-06
@MasterGerold

Well, JOIN do... joinWith.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question