# |
Sep 22nd 2011, 18:01 |
scoutmstershke |
!seen TheWarden |
# |
Sep 22nd 2011, 18:01 |
ujjain |
NetersLandreau: is empty. |
# |
Sep 22nd 2011, 18:01 |
ujjain |
thanks |
# |
Sep 22nd 2011, 18:00 |
NetersLandreau |
$this->Privatemessage->invalidFields() |
# |
Sep 22nd 2011, 18:00 |
scoutmstershke |
if($var) |
# |
Sep 22nd 2011, 18:00 |
ujjain |
How can I find the error message for $this->Privatemessage->save? |
# |
Sep 22nd 2011, 18:00 |
scoutmstershke |
your my Cakephp bitches |
# |
Sep 22nd 2011, 18:00 |
scoutmstershke |
no im back from lunch and all of you are my bitches |
# |
Sep 22nd 2011, 17:59 |
EtRiGaN |
you became bitches again? |
# |
Sep 22nd 2011, 17:59 |
scoutmstershke |
k im back bitches |
# |
Sep 22nd 2011, 17:45 |
kidtangerine |
Ok, so i need to bind a model |
# |
Sep 22nd 2011, 17:45 |
cakenoob |
like with bindModel |
# |
Sep 22nd 2011, 17:45 |
cakenoob |
and also on the fly associations |
# |
Sep 22nd 2011, 17:45 |
cakenoob |
containable is used with pre-defined associations |
# |
Sep 22nd 2011, 17:43 |
kidtangerine |
If I want to use Containable behavior, and contain a model, do I have to have a pre-defined associate with that model? |
# |
Sep 22nd 2011, 17:38 |
ujjain |
sorry, wrong window. |
# |
Sep 22nd 2011, 17:38 |
ujjain |
the requests should not hit cake, but just redirect. Above. |
# |
Sep 22nd 2011, 17:37 |
ujjain |
the requests should not hit cake, but just redirect. Above. |
# |
Sep 22nd 2011, 17:37 |
cakenoob |
below or above? |
# |
Sep 22nd 2011, 17:37 |
ujjain |
put the 3 lines above the cakephp content. |
# |
Sep 22nd 2011, 17:37 |
ujjain |
Yes. |
# |
Sep 22nd 2011, 17:37 |
cakenoob |
in the .htaccess I put this below the above the cakephp RewriteCond %{REQUEST_FILENAME} !-d? |
# |
Sep 22nd 2011, 17:37 |
ujjain |
or else <directory... > |
# |
Sep 22nd 2011, 17:36 |
ujjain |
You can edit your httpd.conf? I am not sure to be honest where you can place it. Maybe in the <virtualhost ...> |
# |
Sep 22nd 2011, 17:35 |
ujjain |
http://www.web-portfolio.be/seo/301-redirect-none-www.php |
# |
Sep 22nd 2011, 17:35 |
cakenoob |
yes, what lines do I put |
# |
Sep 22nd 2011, 17:35 |
ujjain |
alternative => httpd.conf editing. |
# |
Sep 22nd 2011, 17:35 |
ujjain |
You should edit your app/webroot/.htaccess file. |
# |
Sep 22nd 2011, 17:31 |
cakenoob |
anyone know how to do non-www to www redirection in cakephp .htaccess without going to /app/webroot? |
# |
Sep 22nd 2011, 17:30 |
ujjain |
I have $this->Question->Answer->findByQuestionId. I am not sure what to use when (var $uses etc). |
# |
Sep 22nd 2011, 17:29 |
ujjain |
thanks, it works. |
# |
Sep 22nd 2011, 17:28 |
ujjain |
ScottO_: right, I thought so, I never work like that, but it seems an easy way to do things instead of a find('all') with conditions. |
# |
Sep 22nd 2011, 17:28 |
ScottO_ |
ujjain: try $this->Answer->findByQuestionId($id); |
# |
Sep 22nd 2011, 17:27 |
ScottO_ |
ujjain: it means it cant find that model method |
# |
Sep 22nd 2011, 17:25 |
ujjain |
does that mean Cake understands it but the model is wrong? |
# |
Sep 22nd 2011, 17:24 |
ujjain |
I think it doesn't work, Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'findAnswerbyQuestionId' at line 1 [CORE/cake/libs/model/datasources/dbo_source.php, line 684] |
# |
Sep 22nd 2011, 17:24 |
delfis |
very smart. |
# |
Sep 22nd 2011, 17:23 |
ujjain |
delfis: that does not work either. |
# |
Sep 22nd 2011, 17:23 |
robcowie |
thats what I thought, but using the examples on the above linked post did not work, I check the bug tracker link as well |
# |
Sep 22nd 2011, 17:22 |
TooMuchCaffeine |
robcowie: correction. if linked model is hasMany then saveAll recursively calls itself |
# |
Sep 22nd 2011, 17:21 |
delfis |
uppercase I |