Welcome Guest, Not a member yet? Register   Sign In
Passing a single array to a model
#15

[eluser]xwero[/eluser]
Lets take this forum as an example. You have the search box at the top of the page and you have the advance search.

I would make two methods because the search box looks in the titles and the posts for all words in all forums. This is a pretty expensive query. The advanced search can be limited much more than the search box query so the method should make this possible. You could build the search box query in it's own method and use the advanced search query to fetch the data but i think you can optimize the search box query better in it's own method.


Messages In This Thread
Passing a single array to a model - by El Forum - 03-08-2009, 12:40 PM
Passing a single array to a model - by El Forum - 03-10-2009, 06:59 AM
Passing a single array to a model - by El Forum - 03-10-2009, 07:18 AM
Passing a single array to a model - by El Forum - 03-10-2009, 07:30 AM
Passing a single array to a model - by El Forum - 03-10-2009, 07:35 AM
Passing a single array to a model - by El Forum - 03-10-2009, 07:37 AM
Passing a single array to a model - by El Forum - 03-10-2009, 07:43 AM
Passing a single array to a model - by El Forum - 03-10-2009, 07:48 AM
Passing a single array to a model - by El Forum - 03-10-2009, 08:36 AM
Passing a single array to a model - by El Forum - 03-10-2009, 08:50 AM
Passing a single array to a model - by El Forum - 03-10-2009, 08:55 AM
Passing a single array to a model - by El Forum - 03-10-2009, 09:13 AM
Passing a single array to a model - by El Forum - 03-10-2009, 09:47 AM
Passing a single array to a model - by El Forum - 03-10-2009, 09:53 AM
Passing a single array to a model - by El Forum - 03-10-2009, 10:35 AM
Passing a single array to a model - by El Forum - 03-10-2009, 10:53 AM
Passing a single array to a model - by El Forum - 03-10-2009, 11:23 AM
Passing a single array to a model - by El Forum - 03-10-2009, 11:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB