문제

I'm working on a PHP Real Estate catalog. I am working on the search part right now and I'm having trouble with the logic.

Should the default view show all items in the catalog or the search page? Should the code flow handle search first or individual view first?

Ideas, tips, links are appreciated. Thanks.

도움이 되었습니까?

해결책

It is best to use the SQL statement as the model for the search view; this way you can decouple the view from any processes. This would help to simplify the code flow too as well as regardless if you are searching or just displaying the generic view, the only things that change is the model (i.e, the SQL statement)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top