# |
Aug 8th 2008, 15:16 |
teknoid |
jaredhoyt: guess the easiest would be to replace with a ' ' |
# |
Aug 8th 2008, 15:16 |
jaredhoyt |
from what i've received so far |
# |
Aug 8th 2008, 15:15 |
teknoid |
jaredhoyt: is it always T and Z ? |
# |
Aug 8th 2008, 15:14 |
digor |
fixed http://bin.cakephp.org/saved/35901, looks like Sanitize::stripWhitespace() dont strip windows newlines from textareas |
# |
Aug 8th 2008, 15:14 |
jaredhoyt |
it's from a paypal api response |
# |
Aug 8th 2008, 15:14 |
jaredhoyt |
anyone know what kind of format this is and how to turn it into a datetime? 2008-08-08T20:23:33Z |
# |
Aug 8th 2008, 14:56 |
teknoid |
digor: still i don't think it's a good idea to rely on parent's return |
# |
Aug 8th 2008, 14:55 |
digor |
actually now that i think about it i've run into this before and had to use the character code chr(13) or something |
# |
Aug 8th 2008, 14:54 |
jaredhoyt |
nvm, just my cache :D |
# |
Aug 8th 2008, 14:54 |
digor |
teknoid: well yeah the parent, in this case Model returns true by default |
# |
Aug 8th 2008, 14:54 |
teknoid |
np |
# |
Aug 8th 2008, 14:54 |
lqdice____ |
yeah this changed it a bit.. still not getting desired result but closer.. thanks |
# |
Aug 8th 2008, 14:53 |
teknoid |
lqdice____: if you mean it's not bound, then yeah it's not |
# |
Aug 8th 2008, 14:53 |
teknoid |
lqdice____: but you can certainly define the bind in the file |
# |
Aug 8th 2008, 14:53 |
lqdice____ |
teknoid: apparently not properly though |
# |
Aug 8th 2008, 14:53 |
jaredhoyt |
mari00sh: you could always do a pr($this->data) to see what you've got ;) |
# |
Aug 8th 2008, 14:53 |
mari00sh |
thx |
# |
Aug 8th 2008, 14:52 |
teknoid |
lqdice____: the model is already made for you |
# |
Aug 8th 2008, 14:52 |
jaredhoyt |
mari00sh: use the path set in formhelper .... input('Model.fieldname') would be in $this->data['Model']['fieldname'] |
# |
Aug 8th 2008, 14:52 |
lqdice____ |
but i dont think i have to do a bindmodel |
# |
Aug 8th 2008, 14:52 |
lqdice____ |
hmm .. actually I think if I create the groups_node model then make it belongsto node it might be ok |
# |
Aug 8th 2008, 14:52 |
teknoid |
digor: you should return true in beforeSave() |
# |
Aug 8th 2008, 14:52 |
mari00sh |
how can i get value of one field of sent form in controller, $this->data ..and??? for example i need value of field 'name' |
# |
Aug 8th 2008, 14:52 |
jaredhoyt |
arg, i'm getting a 'table not found' when it's clearly there |
# |
Aug 8th 2008, 14:52 |
teknoid |
lqdice____: then i don't understand what problem you are having... |
# |
Aug 8th 2008, 14:51 |
lqdice____ |
cause its not trying to do any crazy condition |
# |
Aug 8th 2008, 14:51 |
lqdice____ |
its not a problem w/ binding i dont think |
# |
Aug 8th 2008, 14:51 |
lqdice____ |
i mean even the way I previously had it, if only it had done a 'write_access'=1 in the ON () join it would have been ok |
# |
Aug 8th 2008, 14:51 |
lqdice____ |
it doesnt need to be bound |
# |
Aug 8th 2008, 14:51 |
teknoid |
lqdice____: i'm pretty sure join model is not bound by default, so you gotta do bindModel(array('belongsTo'=>.... |
# |
Aug 8th 2008, 14:50 |
lqdice____ |
do i have to create an GroupsNode class perhaps ? |
# |
Aug 8th 2008, 14:50 |
lqdice____ |
teknoid: only problem is im doing a 'Contain' and GroupsNode doesn't seem to have a reference to 'Node' .. when I do Group->find(..'contain'=>array('Node'=>'condition(...))) its fine but when i do that to GroupsNode it doesnt |
# |
Aug 8th 2008, 14:48 |
digor |
i have this in a comment model, http://bin.cakephp.org/view/617195461, and i can still put newlines in the body field |
# |
Aug 8th 2008, 14:44 |
lqdice____ |
i had done this before too just had forgotten |
# |
Aug 8th 2008, 14:43 |
teknoid |
ehh... ok :) |
# |
Aug 8th 2008, 14:43 |
lqdice____ |
i lub you |
# |
Aug 8th 2008, 14:43 |
lqdice____ |
ohh |
# |
Aug 8th 2008, 14:43 |
teknoid |
lqdice____: $this->Group->GroupsNode->find('all', array('conditions'=>array('GroupsNode.group_id'=>5, 'GroupsNode.write_access'=>1... |
# |
Aug 8th 2008, 14:42 |
lqdice____ |
teknoid: can you give a quick example ? |
# |
Aug 8th 2008, 14:42 |
teknoid |
lqdice____: pass conditions to your join table model... |
# |
Aug 8th 2008, 14:41 |
polumrak |
ACTION is scared :( |