Log message #1109896

# At Username Text
# Oct 22nd 2009, 09:55 ionas dogmatic69, I'd suggest backing up your company model, cloning your industry model as your company model
# Oct 22nd 2009, 09:55 dogmatic69 thx anyway
# Oct 22nd 2009, 09:54 ionas dogmatic69, okay, no idea why it works then
# Oct 22nd 2009, 09:54 ionas jcrawford, in 1.3 there is a fix in for setting a layout within setFlash - you could add the $form->error within that layout maybe
# Oct 22nd 2009, 09:54 markstory Controller::constructClasses does that.
# Oct 22nd 2009, 09:54 markstory no
# Oct 22nd 2009, 09:54 Iiridayn_ markstory: When the controller is constructed, so are it's models and components, no?
# Oct 22nd 2009, 09:54 ionas jcrawford, you can put the $form->error whereever you want (probably within "form->create", but not sure if that is required)
# Oct 22nd 2009, 09:53 jcrawford ionas i will see what that holds for data thanks :D
# Oct 22nd 2009, 09:53 jcrawford i have it working now with a find() then save() but there is a race condition there
# Oct 22nd 2009, 09:53 markstory Iiridayn_: Well if you arent' using controller callbacks, I don't now if removing the construction of one object and setting 10 properties is going to really reduce load.
# Oct 22nd 2009, 09:53 ionas reading Model->invalidFields or Model->errors or something
# Oct 22nd 2009, 09:53 jcrawford so i would not want the message attached to a single form element
# Oct 22nd 2009, 09:53 jcrawford ionas yes that is for a single field this deals with a unique constraint on multiple fields
# Oct 22nd 2009, 09:52 ionas jcrawford, only via the controller
# Oct 22nd 2009, 09:52 jcrawford rather than littering my views with these tagErrorMsg
# Oct 22nd 2009, 09:52 tk8 i have a file cache as default in my core php
# Oct 22nd 2009, 09:52 ionas jcrawford, $form->error('fieldname', 'optional error message if you specify boolean in model only');
# Oct 22nd 2009, 09:52 tk8 anyone know why im getting this warning: Cache not configured properly. Please check Cache::config();
# Oct 22nd 2009, 09:52 jcrawford ionas i know that is being used. the question is how to get that error message into the flash
# Oct 22nd 2009, 09:52 dogmatic69 ionas: Industry does not have and it works
# Oct 22nd 2009, 09:52 ionas jcrawford, $this->invalidate('fieldname', 'errormessage or boolean');
# Oct 22nd 2009, 09:51 ionas no idea what contains does inside ;)
# Oct 22nd 2009, 09:51 jcrawford dogmatic69 tagErrorMessage seems to be a method of the html helper not the controller
# Oct 22nd 2009, 09:51 ionas I would create complete relationships
# Oct 22nd 2009, 09:51 dogmatic69 im calling from the Publisher that is not needed
# Oct 22nd 2009, 09:51 dogmatic69 nope
# Oct 22nd 2009, 09:50 ionas and does Country HasMany Publisher?
# Oct 22nd 2009, 09:50 Iiridayn_ In response to your suggestions - it's decreased server load I seek. Using CakePHP was not my decision, though I honestly feel that I might have chosen the same. However, now that we are we need to find a way to make it scale. For obvious reasons, using D or C was out
# Oct 22nd 2009, 09:50 dogmatic69 well then $this->Model->tagErrorMsg() in the controller
# Oct 22nd 2009, 09:50 jcrawford in the view rather than storing the message in the flash
# Oct 22nd 2009, 09:50 jcrawford they show using $html->tagErrorMsg()
# Oct 22nd 2009, 09:50 dogmatic69 ionas: Publisher belongsTo Country
# Oct 22nd 2009, 09:50 jcrawford dogmatic69 i am asking because I was looking at this tutorial http://bakery.cakephp.org/articles/view/detecting-duplicate-entries-when-updating
# Oct 22nd 2009, 09:49 ionas if its not a linear relationship afaik
# Oct 22nd 2009, 09:49 dogmatic69 jcrawford: $this->erros = xyz; then in controller $this->Model->errors
# Oct 22nd 2009, 09:49 ionas dogmatic69, you know that you might have to cascade contain
# Oct 22nd 2009, 09:49 dogmatic69 jcrawford: session is not available in flash
# Oct 22nd 2009, 09:48 dogmatic69 its not doing LEFT JOIN Country...
# Oct 22nd 2009, 09:48 jcrawford from the model is there no way to set a message in the flash messenger? setFlash()?
# Oct 22nd 2009, 09:48 dogmatic69 ionas: http://bin.cakephp.org/view/481519696