Log message #114569

# At Username Text
# Aug 9th 2008, 21:35 tomas- i am trying to use the ajax forms to manage a photo album...i have a "Delete" button in the form and apparently when i debug what '$this->data' contains, it doesnt include a 'submit' button, despite it being there... any idea why, and how i can have multiple submit buttons (one Update, one Delete, etc...)?
# Aug 9th 2008, 21:35 skua i just got to use useDbConfig in behavior last night to manage multiple db with one domains :)
# Aug 9th 2008, 21:34 adj makes sense*
# Aug 9th 2008, 21:34 skua and afterSave() -> change and save
# Aug 9th 2008, 21:34 adj skua: ok. got that. make since
# Aug 9th 2008, 21:34 skua so first let cake making is stuff
# Aug 9th 2008, 21:34 skua the first update/save will be in your new db
# Aug 9th 2008, 21:34 adj it would also have to return the db to what it previously was at the end of _sync() though, or does it?
# Aug 9th 2008, 21:33 skua if you switch db in setup
# Aug 9th 2008, 21:33 skua and you call you _sync() in afterSave
# Aug 9th 2008, 21:33 adj skua: ok. so the db switch needs to take place during the after|before hook, not the setup/cleanup
# Aug 9th 2008, 21:33 skua then a little $model->save( $thevarsofolddata )
# Aug 9th 2008, 21:32 skua where you copy $model->data in a vars, then use $useDbConfig = 'newdb';
# Aug 9th 2008, 21:32 adj exactly
# Aug 9th 2008, 21:32 skua ok so in your behavior create a function _sync() {}
# Aug 9th 2008, 21:32 adj so when certain user fields are updated, i need them to push to ldap
# Aug 9th 2008, 21:31 adj the other db is ldap
# Aug 9th 2008, 21:31 adj both
# Aug 9th 2008, 21:31 adj right
# Aug 9th 2008, 21:31 skua or in both
# Aug 9th 2008, 21:31 skua you sync when field are update or created ?
# Aug 9th 2008, 21:31 skua hum
# Aug 9th 2008, 21:30 skua with a behavior wich switch useDbConfig
# Aug 9th 2008, 21:30 adj well, i'm creating a behavior to sync fields in the model to fields in another db.table, any ideas on how to change the db and table for function in the (after|before)* methods?
# Aug 9th 2008, 21:30 skua and making a "copy" new Model() give me configured dbconfig
# Aug 9th 2008, 21:30 skua the first new Model() give me the rihght dbconfig
# Aug 9th 2008, 21:29 skua ah no sorry, for myself
# Aug 9th 2008, 21:29 adj hmm
# Aug 9th 2008, 21:29 skua the useDbConfig is reseted
# Aug 9th 2008, 21:28 skua when you do a new Model()
# Aug 9th 2008, 21:28 adj if i set $useDbConfig in a behavior's setup, and reset it back in the cleanup will this affect the model for its entire life? to work on another db will i have to set this in each method of the behavior instead?
# Aug 9th 2008, 21:25 JD__ ok, back to my first problem (from hours ago) http://bin.cakephp.org/saved/35953 It seems that if validation rules get broken on a child object, the form doe snot get redisplayed. Is this a bug or the function in my paste how i have to save child object when creating new parent objects?
# Aug 9th 2008, 21:20 Darote thank u
# Aug 9th 2008, 21:19 markstory $This->set('title', 'poop');
# Aug 9th 2008, 21:19 Darote markstory: for default layout ?
# Aug 9th 2008, 21:19 Darote markstory: i'm trying to set custom pageTitle
# Aug 9th 2008, 21:17 rnickel I'm using the REST components within CAKE just fine (works like a CHARM actually), however when I go to my add method the flash takes over upon success. I want to show this flash in an XML format... when I add a flash.ctp to my xml layouts, nothing gets rendered... even everything that's in my flash.ctp file (without the flash.ctp file, cake throws an error saying that I need to create one)
# Aug 9th 2008, 21:17 rnickel I asked this question earlier, but here it is again (in case someone who can help me has since signed in)
# Aug 9th 2008, 21:17 rnickel Hey guysI
# Aug 9th 2008, 21:14 markstory what are you trying to do?
# Aug 9th 2008, 21:11 markstory seems simple enough.