Log message #112701

# At Username Text
# Aug 8th 2008, 21:34 mboldisc I dunno, whoever owns the cakephp site.
# Aug 8th 2008, 21:34 markstory whose guys?
# Aug 8th 2008, 21:33 mboldisc Do you guys get many donations?
# Aug 8th 2008, 21:31 Azhi_Dahaka_ hmm... gotta give it a try
# Aug 8th 2008, 21:30 Telik you could put that in the beforeFilter()...then surround that block with an if...then to check to see if you're already inside an /admin/ path
# Aug 8th 2008, 21:30 Telik (substituting the proper stuff in place of those variables
# Aug 8th 2008, 21:29 Telik well, if you have permissions setup, then you could do if($getAdminStatus) : $this->redirect('/admin/$controller/$action')
# Aug 8th 2008, 21:28 Azhi_Dahaka_ anyway, the permission issue is solved... but i would like to know if there's a way to transparently redirect every action into admin/action IF the proper credentials are given
# Aug 8th 2008, 21:28 Telik thought maybe you might have better luck than I
# Aug 8th 2008, 21:27 Telik lol, i have the same problem. i need to use it on my app, but i still haven't figured it out
# Aug 8th 2008, 21:27 Azhi_Dahaka_ i tried... really... but i just can't get my head around it.
# Aug 8th 2008, 21:27 Telik Azhi_Dahaka_: i could be wrong but that sounds like a good place to use ACL
# Aug 8th 2008, 21:22 Azhi_Dahaka_ hmm, is there a way to autoredirect every action into admin/action if the proper credencials are given?
# Aug 8th 2008, 21:20 Telik i'm having a problem with afterFind($results). i use a foreach to add a calculated field to each record, but it seems to not work. even when i do debug($results) after the foreach, i don't see my new values anywhere
# Aug 8th 2008, 21:18 Matt1 markstory: thank you, that works perfectly.
# Aug 8th 2008, 21:17 markstory Configure::getInstance() will get you a configure object though.
# Aug 8th 2008, 21:17 markstory no.
# Aug 8th 2008, 21:17 Matt1 debug(Configure::read()); not working
# Aug 8th 2008, 21:16 Matt1 like: Configure::read('App.dir')
# Aug 8th 2008, 21:16 Matt1 markstory: yes
# Aug 8th 2008, 21:15 markstory like Configure the class?
# Aug 8th 2008, 21:15 markstory what config?
# Aug 8th 2008, 21:15 Matt1 is there a way to debug all values that are available in config ?
# Aug 8th 2008, 21:10 markstory pr($_SESSION);
# Aug 8th 2008, 21:06 djspark where can I find if there is a user logged in, who, etc with the authentication component? is there a document of the values I can reference?
# Aug 8th 2008, 21:05 mboldisc Does that question make sense to anyone?
# Aug 8th 2008, 21:02 mboldisc I realize scaffolding does a query on the database to get some metadata. Is it best practice to create well-defined models with the database fields, or deploy an application that uses the metadata queries?
# Aug 8th 2008, 20:59 lqdice__ its a good site
# Aug 8th 2008, 20:59 lqdice__ hey anyone who is not a part of ohloh.net .. join it and make some comments on cakephp
# Aug 8th 2008, 20:42 skua that's look better :)
# Aug 8th 2008, 20:42 skua oooo yes ! thank !
# Aug 8th 2008, 20:42 TommyO __construct() calls it
# Aug 8th 2008, 20:41 TommyO skua: override setSource()
# Aug 8th 2008, 20:41 Telik this def. belongs in the model
# Aug 8th 2008, 20:41 skua and in behavior that look like function afterFind(and$model, $results, $primary) {...
# Aug 8th 2008, 20:41 Telik but it shouldn't matter
# Aug 8th 2008, 20:41 skua I always use it in behavior
# Aug 8th 2008, 20:41 skua i never used afterFind alone in the model
# Aug 8th 2008, 20:38 Telik hey everyone! i'm using an 'afterFind($results)' and even after creating a pseudofield in the foreach, i do a debug($results) within the afterFind() and the new field isn't there. what's going on??
# Aug 8th 2008, 20:37 skua thank :)
# Aug 8th 2008, 20:36 skua i think it's the best