Log message #114561

# At Username Text
# 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.
# Aug 9th 2008, 21:11 markstory it doesn't exist.
# Aug 9th 2008, 21:10 Darote Call to undefined method CoursesController::pageTitle() ?? anyone
# Aug 9th 2008, 21:09 Darote Call to undefined method CoursesController::pageTitle() ??
# Aug 9th 2008, 21:04 markstory no worries :)
# Aug 9th 2008, 21:03 JD__ I totally missed the point thanks
# Aug 9th 2008, 21:03 JD__ I understand now
# Aug 9th 2008, 21:03 JD__ ug
# Aug 9th 2008, 21:02 markstory this just mentions that app::import replaces the various load**() functions.