# |
Aug 8th 2008, 13:41 |
TommyO |
linked_: oh i see :) yeah, that's not super clear is it? |
# |
Aug 8th 2008, 13:41 |
tom_mk |
it's just 3-4 lines |
# |
Aug 8th 2008, 13:41 |
tom_mk |
http://bin.cakephp.org/view/1956916747 |
# |
Aug 8th 2008, 13:41 |
tom_mk |
i think i have something wrong with my condition statement |
# |
Aug 8th 2008, 13:41 |
AD7six |
agentbob: why would you edit the 1.1 manual |
# |
Aug 8th 2008, 13:41 |
zeen |
i need lots of beta testers :) |
# |
Aug 8th 2008, 13:41 |
linked_ |
TommyO: i'm sorry, i misread it it. it says "Three other layouts–xml, js, and rss–exist" tsk.. i took it as layouts-xml. my wrong. |
# |
Aug 8th 2008, 13:41 |
zeen |
tbranyen, will let you know when it's avaliable. it'll be on google code |
# |
Aug 8th 2008, 13:40 |
tom_mk |
hellooo |
# |
Aug 8th 2008, 13:40 |
agentbob |
AD7six: http://manual.cakephp.org/edit/312/models |
# |
Aug 8th 2008, 13:40 |
agentbob |
AD7six: models in 1.1 |
# |
Aug 8th 2008, 13:40 |
TommyO |
linked_: if you don't mind I'd like to see where in the manual so I can straighten it out |
# |
Aug 8th 2008, 13:39 |
mil |
hold on, thanks |
# |
Aug 8th 2008, 13:39 |
mil |
I'll bin |
# |
Aug 8th 2008, 13:39 |
mil |
okay, oaky |
# |
Aug 8th 2008, 13:39 |
teknoid |
mil: is that not what you wanted? |
# |
Aug 8th 2008, 13:39 |
AD7six |
it only takes a couple of minutes to do what it's telling you. |
# |
Aug 8th 2008, 13:39 |
AD7six |
agentbob: it doesn't allow propogation of bad habits - what section. |
# |
Aug 8th 2008, 13:39 |
TommyO |
mil: what EXACTLY does it create? as in: bin the source generated |
# |
Aug 8th 2008, 13:39 |
infantigniter |
lol, i did, i just don't remember everything. and somewhere along the line i developed a fear of using save() for updating. thanks |
# |
Aug 8th 2008, 13:39 |
linked_ |
TommyO: er, just got it from the manual |
# |
Aug 8th 2008, 13:38 |
agentbob |
AD7six: can't edit the manual btw... complains to me to create subsections instead of headers in content... the whole model section is composed of headers :| |
# |
Aug 8th 2008, 13:38 |
linked_ |
AD7six: geez, i think i should get some sleep...sorry |
# |
Aug 8th 2008, 13:38 |
mil |
thanks, btw, yeah, it creates a textarea |
# |
Aug 8th 2008, 13:38 |
AD7six |
infantigniter: of course have you not done the blog tutorial yet? |
# |
Aug 8th 2008, 13:38 |
TommyO |
linked_: and why the 'layouts-xml' and not just 'xml' |
# |
Aug 8th 2008, 13:38 |
teknoid |
infantigniter: save() will do either insert or update |
# |
Aug 8th 2008, 13:38 |
infantigniter |
ad7six: because i just did that and it works fine |
# |
Aug 8th 2008, 13:38 |
infantigniter |
AD7six: i've been scared to use save() because i thought that was exclusive to creation of new records. so just to be sure, i can use save() to update without breaking best practice? |
# |
Aug 8th 2008, 13:37 |
AD7six |
linked_: what is $layout |
# |
Aug 8th 2008, 13:37 |
linked_ |
what is wrong with this: $this->$layout = 'layouts-xml'; |
# |
Aug 8th 2008, 13:37 |
AD7six |
infantigniter: why are you using update all |
# |
Aug 8th 2008, 13:37 |
teknoid |
mil: depending on your version of cake (possibly) echo $form->input('mylovelyfield', array('rows'=>'10')); should produce a textarea |
# |
Aug 8th 2008, 13:36 |
AD7six |
infantigniter: not necessary |
# |
Aug 8th 2008, 13:36 |
infantigniter |
mil: $form->textarea(stuff) |
# |
Aug 8th 2008, 13:36 |
AD7six |
mil: where are you saying that's a textarea |
# |
Aug 8th 2008, 13:35 |
mil |
will try |
# |
Aug 8th 2008, 13:35 |
TommyO |
mil: now bin what the call generates |
# |
Aug 8th 2008, 13:35 |
mil |
yup nope |
# |
Aug 8th 2008, 13:35 |
infantigniter |
or, does anybody know the best way i can go about pretending that a update() function exists? |
# |
Aug 8th 2008, 13:35 |
teknoid |
mil: should work just fine... |