Log message #114541

# At Username Text
# 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.
# Aug 9th 2008, 21:01 JD__ that makes sense :)
# Aug 9th 2008, 21:01 JD__ http://cakebaker.42dh.com/2008/01/10/deprecated-stuff-in-cakephp-12/
# Aug 9th 2008, 21:01 markstory App::import is just for loading class files. If you app::import a file you still need to construct the object :)
# Aug 9th 2008, 21:01 JD__ ok I must have not read carefull yenough :P
# Aug 9th 2008, 21:00 markstory use of loadModel() and loadComponent() is depricated and removed.
# Aug 9th 2008, 21:00 markstory whoever said that was smoking bad stuff. :)
# Aug 9th 2008, 21:00 markstory what uses and $components?
# Aug 9th 2008, 20:59 JD__ ok, I saw that was going to be depricated
# Aug 9th 2008, 20:59 markstory and models you can get to via relationships or use var $uses = array('UserProfile') in your controller.
# Aug 9th 2008, 20:59 markstory for components do var $components = array('Email');
# Aug 9th 2008, 20:59 JD__ ooohhh
# Aug 9th 2008, 20:59 markstory that won't work at all.
# Aug 9th 2008, 20:58 JD__ well im starting a REALLY big project, so I dont want to use stuff that is depricated
# Aug 9th 2008, 20:58 markstory app::import doesn't build objects just loads classes.
# Aug 9th 2008, 20:58 JD__ for example: http://bin.cakephp.org/view/1336178153
# Aug 9th 2008, 20:58 markstory JD__: what are you trying to do?
# Aug 9th 2008, 20:55 JD__ is it not working verywhere or am i using it wrong?
# Aug 9th 2008, 20:55 JD__ Ok, what is the deal with App::import()? from what I have read, its how we are supposed to include compoents, models etc, but none of the articles i have found really explain where to use it. I have made beforeFilter() in my app_controller.php, and in Parent::beforeFilter() in other controllers where i need things liek email.
# Aug 9th 2008, 20:51 Spoom heading out, cyas
# Aug 9th 2008, 20:51 Spoom anyway