Log message #3149285

# At Username Text
# Jan 30th 2014, 03:50 Starcraftmazter lol
# Jan 30th 2014, 03:50 Starcraftmazter i didnt figure it out someone else at work helped me
# Jan 30th 2014, 03:49 BackEndCoder but well done
# Jan 30th 2014, 03:49 BackEndCoder its so strange that it worked ok in the other view
# Jan 30th 2014, 03:48 Starcraftmazter its the damn dwoo thing
# Jan 30th 2014, 03:48 Starcraftmazter BackEndCoder: I had to do $this->data['form']
# Jan 30th 2014, 03:46 BackEndCoder Starcraftmazter, what was the asnwer ?
# Jan 30th 2014, 03:41 Starcraftmazter BackEndCoder: got it
# Jan 30th 2014, 02:38 RogerWS Hello voycey
# Jan 30th 2014, 02:38 RogerWS tigrang_: thanks for the input
# Jan 30th 2014, 02:38 voycey Afternoon all :)
# Jan 30th 2014, 02:35 tigrang_ I would probably pick a one model as the "main" one, and add either manual joins using 'joins' key inside a custom find method, or bind them as belongsTo with no foriegnKey
# Jan 30th 2014, 02:31 RogerWS In this case, the 2 tables being searched aren't related.
# Jan 30th 2014, 02:30 tigrang_ RogerWS: how are the tables related?
# Jan 30th 2014, 02:30 RogerWS Thank you
# Jan 30th 2014, 02:30 RogerWS jorgec: okay, I'll try that. Maybe I was just over thinking this.
# Jan 30th 2014, 02:28 jorgec RogerWS: ModelA.title LIKE ..., ModelB.title LIKE ...
# Jan 30th 2014, 02:26 RogerWS jergec: Can I specify multiple models doing that? I haven't looked close enough at that either.
# Jan 30th 2014, 02:25 jorgec RogerWS: Why don't you add a condition to the pagination settings, Model.title LIKE ... ?
# Jan 30th 2014, 02:22 RogerWS Yes the field name is the same for both models (Title)
# Jan 30th 2014, 02:21 jorgec RogerWS: which field? is it the same for all models?
# Jan 30th 2014, 02:18 RogerWS THanks jorgec, I looked at that a little and thought it may be overkill. i'll look closer
# Jan 30th 2014, 02:18 jorgec !tell RogerWS about search
# Jan 30th 2014, 02:14 RogerWS I'm trying to build a simple search engine that just needs to a basic LIKE query against a single field, but against multiple models. I was thinking about adding a 'search' method to my models, run the queries and return the results, and now I want to paginate the aggregate results of all the models. Can I pass my own results to the Paginate component like that? Or is there a different approach I should take?
# Jan 30th 2014, 02:13 RogerWS Good evening all
# Jan 30th 2014, 01:55 BackEndCoder Starcraftmazter, i can't do much without running your code myself
# Jan 30th 2014, 01:22 Starcraftmazter ><
# Jan 30th 2014, 01:22 Starcraftmazter yeh i know that approach but im not sure if it will fit here
# Jan 30th 2014, 01:21 BackEndCoder then edit
# Jan 30th 2014, 01:21 BackEndCoder get it working
# Jan 30th 2014, 01:21 BackEndCoder clone it
# Jan 30th 2014, 01:21 BackEndCoder copy the index function word for word
# Jan 30th 2014, 01:20 BackEndCoder worst comes to worse
# Jan 30th 2014, 01:20 BackEndCoder look at the differences in both actions
# Jan 30th 2014, 01:20 Starcraftmazter but where it does,t i get Dwoo_Object
# Jan 30th 2014, 01:20 Starcraftmazter in the template where its working, if i var_dump ($this) I get ThemeView
# Jan 30th 2014, 01:20 Starcraftmazter BackEndCoder:
# Jan 30th 2014, 01:20 Starcraftmazter im sure its to do with dwoo
# Jan 30th 2014, 01:15 todds lukasstr: interesting -- I didn't know. It may be possible, I just don't know off the top of my head.
# Jan 30th 2014, 01:15 BackEndCoder doesn't look too challanging
# Jan 30th 2014, 01:15 BackEndCoder dereuromark, looks like there is a nice github plugin for the vendor import