# |
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 |
# |
Oct 22nd 2009, 09:48 |
markstory |
or the internet |
# |
Oct 22nd 2009, 09:47 |
dakota |
or php |
# |
Oct 22nd 2009, 09:47 |
dogmatic69 |
!bin |
# |
Oct 22nd 2009, 09:47 |
dakota |
If you really really need the speed then don't use a framework |
# |
Oct 22nd 2009, 09:47 |
ionas |
if it does, switch on debug 2 and check if the ORDER BY clause is right |
# |
Oct 22nd 2009, 09:47 |
Iiridayn_ |
I've been trying so hard to be good and not touch the framework files |
# |
Oct 22nd 2009, 09:47 |
markstory |
that will be much faster. |
# |
Oct 22nd 2009, 09:47 |
ionas |
and see if the contains works at all |
# |
Oct 22nd 2009, 09:47 |
markstory |
if you need another 0.000009 seconds then write a different cache helper, and save flat html files. |
# |
Oct 22nd 2009, 09:47 |
ionas |
dogmatic69, fetch some data |
# |
Oct 22nd 2009, 09:47 |
Iiridayn_ |
In other words, not really :/ |
# |
Oct 22nd 2009, 09:47 |
daddy |
ola bakers |
# |
Oct 22nd 2009, 09:47 |
markstory |
rewrite the cache helper |
# |
Oct 22nd 2009, 09:46 |
Iiridayn_ |
markstory: Is there a way to skip initiallzing the controller in the cache, to save some time? |
# |
Oct 22nd 2009, 09:46 |
markstory |
that's why you need the controller. |
# |
Oct 22nd 2009, 09:46 |
Ceeram |
just 3 remaining failing cases, those are not one of them |