# |
Aug 8th 2008, 13:52 |
AD7six |
agentbob: ;) |
# |
Aug 8th 2008, 13:52 |
AD7six |
lqdice__: by adding a condition to your association |
# |
Aug 8th 2008, 13:52 |
flzz |
jayemef: yea it would be nice |
# |
Aug 8th 2008, 13:52 |
lqdice__ |
if I have group habtm nodes.. and in my groups_nodes table I have another column that is "write_access".. how can I get all nodes for a group but that have write_access = 1 |
# |
Aug 8th 2008, 13:51 |
jayemef |
flzz: not that i know of. i wish there was a sequence name setting in the model |
# |
Aug 8th 2008, 13:51 |
agentbob |
tom_mk: haven't tried to query for not null yet... |
# |
Aug 8th 2008, 13:51 |
linked_ |
TommyO: ok. thanks for clarifying :) |
# |
Aug 8th 2008, 13:51 |
agentbob |
tom_mk: listen to AD7six he knows his shit =) |
# |
Aug 8th 2008, 13:50 |
TommyO |
linked_: it does, except there's little benefit other than the folder per extension imho |
# |
Aug 8th 2008, 13:49 |
AD7six |
tom_mk: see the link I gave you. I don't remember if field => array(x, y, z) generates an IN() in 1.1 if not use an OR |
# |
Aug 8th 2008, 13:49 |
linked_ |
TommyO: does this also mean we can organize our own views and use folders? |
# |
Aug 8th 2008, 13:49 |
tom_mk |
that didn't give me back anything |
# |
Aug 8th 2008, 13:49 |
TommyO |
or .rss or .json etc etc |
# |
Aug 8th 2008, 13:49 |
tom_mk |
agentbob : nope, |
# |
Aug 8th 2008, 13:49 |
agentbob |
AD7six: thanks again |
# |
Aug 8th 2008, 13:48 |
TommyO |
linked_: so the same controller/action can be used for both html and xml with no logic changes, simply by adding .xml to the end of urls |
# |
Aug 8th 2008, 13:48 |
TommyO |
linked_: which is worth looking into. with Router extensions on and RequestHandler loaded, cake will automatically use the Xml layout, views and helper if a request comes in ending with .xml |
# |
Aug 8th 2008, 13:47 |
linked_ |
TommyO: yeah, i mean cake/libs/views/layouts/xml/default.ctp |
# |
Aug 8th 2008, 13:47 |
CrazyTux[m] |
Anyone here to shed some more light on ContainableBehavior class. |
# |
Aug 8th 2008, 13:47 |
agentbob |
AD7six: colours don't break backwards compatability ;) |
# |
Aug 8th 2008, 13:47 |
TommyO |
linked_: because of webservice support |
# |
Aug 8th 2008, 13:46 |
TommyO |
linked_: ^^ |
# |
Aug 8th 2008, 13:46 |
TommyO |
might be a filder with a default.ctp |
# |
Aug 8th 2008, 13:46 |
agentbob |
tom_mk: maybe $conditions = array('not' => array('model.avatar' => null),array('model.id'=> 290), array('model.id' => 293)); |
# |
Aug 8th 2008, 13:46 |
TommyO |
linked_: cake/lib/views/layouts |
# |
Aug 8th 2008, 13:46 |
linked_ |
TommyO: looking at the cake/libs/views, xml is a folder. |
# |
Aug 8th 2008, 13:45 |
AD7six |
agentbob: in the context of what we're discussing that's like saying you don't like the color ;) |
# |
Aug 8th 2008, 13:44 |
AD7six |
tom_mk: only slight differences. |
# |
Aug 8th 2008, 13:44 |
agentbob |
AD7six: right, but that's 1.2 |
# |
Aug 8th 2008, 13:44 |
tom_mk |
i on 1.1 btw |
# |
Aug 8th 2008, 13:43 |
AD7six |
tom_mk: (and agentbob): http://book.cakephp.org/view/74/complex-find-conditions |
# |
Aug 8th 2008, 13:43 |
flzz |
hey all, is there any way to specify the name of a sequence a model should use? like var $primaryKey = 'foo'; var $primaryKeySeq ='badly_named_seq' |
# |
Aug 8th 2008, 13:43 |
tbranyen |
zeen: Sweet. |
# |
Aug 8th 2008, 13:43 |
infantigniter |
tom_mk: perhaps someone with more experience will correct me but i think if you don't have any OR conditions you can get rid of the 'and' array |
# |
Aug 8th 2008, 13:43 |
tom_mk |
any1? |
# |
Aug 8th 2008, 13:43 |
linked_ |
TommyO: yes sir, i already corrected it, still missing layout. |
# |
Aug 8th 2008, 13:43 |
agentbob |
AD7six: ok, well thanks for the help anyhow. query works great now |
# |
Aug 8th 2008, 13:42 |
tom_mk |
i trying to fetch out all the row that AVATAR field is not null, and in the same time, id must not equal to 290,293 |
# |
Aug 8th 2008, 13:42 |
TommyO |
linked_: earlier you had $this->$layout = 'xml'; which is not the same as $this->layout = 'xml'; |
# |
Aug 8th 2008, 13:42 |
AD7six |
agentbob: well that would be rejected anyway the book is a place for answers not links to out of date info. |
# |
Aug 8th 2008, 13:41 |
linked_ |
TommyO: er...i guess :) |