Log message #1032242

# At Username Text
# Sep 11th 2009, 15:47 jjwdesign var $components...
# Sep 11th 2009, 15:47 jjwdesign But, the component call is errored.
# Sep 11th 2009, 15:47 ifunk ahh sweet
# Sep 11th 2009, 15:46 jjwdesign You can see all of the conditions.
# Sep 11th 2009, 15:46 jjwdesign There's a controller than I'm working on.
# Sep 11th 2009, 15:45 jjwdesign http://bin.cakephp.org/view/373306583
# Sep 11th 2009, 15:45 jjwdesign !bin
# Sep 11th 2009, 15:45 jjwdesign I'm a bit lost when it comes to using the component and passing the init var.
# Sep 11th 2009, 15:44 ifunk been using cake for a while so hopefully i understand them
# Sep 11th 2009, 15:44 jjwdesign Yes, different types and conditions.
# Sep 11th 2009, 15:44 jjwdesign How well do you understand components in CakePHP?
# Sep 11th 2009, 15:44 ifunk might be able to use this for something else we're doing
# Sep 11th 2009, 15:44 ifunk does it let you specify different conditions per field?
# Sep 11th 2009, 15:43 ifunk ahh sweet
# Sep 11th 2009, 15:43 jjwdesign That would be a typical keyword search.
# Sep 11th 2009, 15:43 jjwdesign array('name' => 'keywords', 'fields' => array('Page.subject','Page.desc'), 'condition' => '=', 'type' => 'string'),
# Sep 11th 2009, 15:43 jjwdesign Example:
# Sep 11th 2009, 15:43 jjwdesign It basically allows you to map from Form Fields to DB fields with conditions.
# Sep 11th 2009, 15:42 ifunk tho i would have put that in a behavior instead of a component
# Sep 11th 2009, 15:42 ifunk interesting
# Sep 11th 2009, 15:41 jjwdesign It not tested.
# Sep 11th 2009, 15:41 jjwdesign It's based on some old non-CakePHP code.
# Sep 11th 2009, 15:40 ifunk ahh ok, yeh i started down the route of creating a massive conditions array, and doing a few smaller searches, but wondered if there is more elegant way
# Sep 11th 2009, 15:40 jjwdesign ifunk: take a look at http://bin.cakephp.org/view/1123721359
# Sep 11th 2009, 15:40 jjwdesign !bin
# Sep 11th 2009, 15:40 jjwdesign But, I can't get it working... Still in dev.
# Sep 11th 2009, 15:39 jjwdesign ifunk: not exactly... I'm working on a component for multiple field searches.
# Sep 11th 2009, 15:39 ifunk anyone done this in cake before?
# Sep 11th 2009, 15:38 ifunk where the keywords might exist in the same field, or spread amongst 3 fields over the three different tables
# Sep 11th 2009, 15:37 ifunk i need to search over 3 related models and provide relevant matches for multiple keywords
# Sep 11th 2009, 15:36 ifunk we've used sphyinx before on a project but am not too keen to use it again
# Sep 11th 2009, 15:36 ifunk hi all, i'm looking to improve the search function i'm using for a cakephp site and wondering what anyone would suggest
# Sep 11th 2009, 15:28 HardPhuck registration became just a bit more complicated, but not much :)
# Sep 11th 2009, 15:27 HardPhuck all users are in one table now, but are related to other stuff via hasOne
# Sep 11th 2009, 15:27 TehTreag HardPhuck: Be careful. There maybe some road hazards doing it my way, that I couldn't see earlier. caveat emptor
# Sep 11th 2009, 15:26 HardPhuck for the problem in several user models
# Sep 11th 2009, 15:26 HardPhuck i'm taking your way :)
# Sep 11th 2009, 15:25 HardPhuck nevermind, solved it
# Sep 11th 2009, 15:23 TehTreag HardPhuck: Can you rephrase your question? I'm not sure what you mean.
# Sep 11th 2009, 15:10 alkemann nps. thanks
# Sep 11th 2009, 15:10 Exterminans Or tell me how to fix?