# |
Oct 22nd 2009, 10:50 |
Lemon_BE |
probably not :p |
# |
Oct 22nd 2009, 10:49 |
Lemon_BE |
at the first run |
# |
Oct 22nd 2009, 10:49 |
Lemon_BE |
lets see if this cross model reactivation algoritm works over 5 models |
# |
Oct 22nd 2009, 10:49 |
Ceeram |
i even removed Model name from within the MIN |
# |
Oct 22nd 2009, 10:49 |
Ceeram |
that gives me back [Product][price] |
# |
Oct 22nd 2009, 10:48 |
Ceeram |
markstory: heres the sql SELECT `Product`.`type`, MIN(price) AS price FROM `products` AS `Product` WHERE 1 = 1 GROUP BY `Product`.`type` ORDER BY `Product`.`type` ASC |
# |
Oct 22nd 2009, 10:47 |
ionas |
l8er |
# |
Oct 22nd 2009, 10:47 |
xbb |
Is it just easier to bake project on the remote server and copy controllers, views, etc from local environment? |
# |
Oct 22nd 2009, 10:46 |
xbb |
I copied my project directory, but here these errors: http://bin.cakephp.org/view/373761736 |
# |
Oct 22nd 2009, 10:46 |
xbb |
what is the procedure of moving cake application from localhost to a hosted server? |
# |
Oct 22nd 2009, 10:46 |
Ceeram |
tables that are created by the test are MyIsam |
# |
Oct 22nd 2009, 10:45 |
xbb |
hello |
# |
Oct 22nd 2009, 10:44 |
markstory |
that should be fine. |
# |
Oct 22nd 2009, 10:44 |
Ceeram |
hmm im on 5.0.22 |
# |
Oct 22nd 2009, 10:43 |
markstory |
are you using more software from the ark? |
# |
Oct 22nd 2009, 10:43 |
markstory |
5.0.86 |
# |
Oct 22nd 2009, 10:43 |
Ceeram |
markstory: what mysql version are you using? |
# |
Oct 22nd 2009, 10:41 |
nicoleG |
there are some real knowledgeable people in here too |
# |
Oct 22nd 2009, 10:41 |
nicoleG |
yup |
# |
Oct 22nd 2009, 10:41 |
Horror |
good learning experience for sure. |
# |
Oct 22nd 2009, 10:40 |
nicoleG |
i'm a few weeks into it and love it, just a new way of thinking for me |
# |
Oct 22nd 2009, 10:40 |
nicoleG |
me too |
# |
Oct 22nd 2009, 10:40 |
Horror |
i'm 1 week cake newbie myself - just scattering everywhere to find solutions and syntax |
# |
Oct 22nd 2009, 10:40 |
nicoleG |
now i still gotta figure out how to paginate a custom query |
# |
Oct 22nd 2009, 10:39 |
nicoleG |
) |
# |
Oct 22nd 2009, 10:39 |
Horror |
nicoleG: all sexy now - works! thanks for the help man |
# |
Oct 22nd 2009, 10:39 |
nicoleG |
let me know what happens |
# |
Oct 22nd 2009, 10:39 |
nicoleG |
var $primaryKey = 'subId' in the model it's a primary key and add it as a foreign key in the related model |
# |
Oct 22nd 2009, 10:39 |
Horror |
which you initially told me |
# |
Oct 22nd 2009, 10:38 |
Horror |
that might be it |
# |
Oct 22nd 2009, 10:38 |
Horror |
nope. no pk delcared in the model template |
# |
Oct 22nd 2009, 10:36 |
nicoleG |
pk* |
# |
Oct 22nd 2009, 10:36 |
nicoleG |
have you declared your primary key in the model it's a pl for and the same field as a foreign key in the model it relates to? |
# |
Oct 22nd 2009, 10:35 |
Horror |
nicoleG: might be something with read() |
# |
Oct 22nd 2009, 10:34 |
nicoleG |
i'm still a new baker :) |
# |
Oct 22nd 2009, 10:34 |
nicoleG |
1 sec, looking around |
# |
Oct 22nd 2009, 10:33 |
Horror |
nicoleG: yeah. I want to change the default from what cakes uses |
# |
Oct 22nd 2009, 10:32 |
nicoleG |
or just for that particular model? |
# |
Oct 22nd 2009, 10:32 |
nicoleG |
which is what you want, right Horror? |
# |
Oct 22nd 2009, 10:32 |
nicoleG |
i think there's a way to change the fields cake uses by default for models |
# |
Oct 22nd 2009, 10:30 |
alan|macbook |
it's been 3 days since i'm googling around and experimenting with no luck and i would really appreicate some help. I have a tree model and i want to do something like this : http://crepitus.com/misc/ext/tree.html How the heck do i do that with cakePHP??? |