Log message #1031913

# At Username Text
# Sep 11th 2009, 11:21 Scotto than how do i get the data i need into the element, when the view that the element is in, is static?
# Sep 11th 2009, 11:21 palam you do finds in controllers or models
# Sep 11th 2009, 11:20 palam Scotto: you can't do a find() in the element
# Sep 11th 2009, 11:20 Scotto just want to make sure that im doing it correctly
# Sep 11th 2009, 11:19 Scotto if i have an element that needs data from a specific model, and i need to to show up next to views which are static, do i use a find() in the element itself?
# Sep 11th 2009, 11:17 palam markstory: i meant explanations for the filters (encode, escape etc), but i guess i can figure that out. thanks!
# Sep 11th 2009, 11:15 markstory ~apilookup clean
# Sep 11th 2009, 11:15 markstory ~apillookup clean
# Sep 11th 2009, 11:15 palam markstory: thanks
# Sep 11th 2009, 11:14 palam is there an explanation for the various filters?
# Sep 11th 2009, 11:14 palam markstory: Sanitize::clean() my variable before setting it right?
# Sep 11th 2009, 11:13 markstory pick one.
# Sep 11th 2009, 11:13 markstory Sanitize::clean()
# Sep 11th 2009, 11:13 markstory $html->clean()
# Sep 11th 2009, 11:13 markstory h()
# Sep 11th 2009, 11:13 palam i mean edit pages
# Sep 11th 2009, 11:13 palam what is the general strategy in preventing xss in edit fields? which filter to use?
# Sep 11th 2009, 11:12 crayfishuk Yay. Fixed it - all works well now... Off to post a comment on the Bakery article. At least I've fixed my code - and someone elses, even though it wasn't bug...
# Sep 11th 2009, 11:06 crayfishuk Just found a comment that I didn't really understand - but now makes perfect sense. (comment 7)
# Sep 11th 2009, 11:05 crayfishuk Bollox. And the SOAP stuff was all working so well... :-(
# Sep 11th 2009, 11:05 crayfishuk Nope. Now the SoapComponent doesn't work... no initialize... Got it from http://bakery.cakephp.org/leafs/view/88
# Sep 11th 2009, 11:01 markstory crayfishuk: workz?
# Sep 11th 2009, 11:01 crayfishuk AARG!
# Sep 11th 2009, 11:01 _patton I'm just getting into i18n - what is the database table for? when I run cake i18n initdb...
# Sep 11th 2009, 11:01 crayfishuk Ah well... NotABug then. Will unhack my corelibs, make it extends Object and see if my redirects spring into life!
# Sep 11th 2009, 11:00 markstory might have been less.
# Sep 11th 2009, 11:00 markstory like 2 months.
# Sep 11th 2009, 11:00 markstory well there was a very brief point in time where Component was a base class.
# Sep 11th 2009, 11:00 crayfishuk You're not kidding. wiped out most of today.
# Sep 11th 2009, 11:00 thinline well you know what everyone wants to extend
# Sep 11th 2009, 10:59 crayfishuk Serves me right for lifting someone elses ****ing component..
# Sep 11th 2009, 10:59 markstory yeah that's a slightly unintuitive part of components.
# Sep 11th 2009, 10:59 markstory Object
# Sep 11th 2009, 10:59 crayfishuk Object?
# Sep 11th 2009, 10:59 crayfishuk What should I extend for a new component ?
# Sep 11th 2009, 10:59 crayfishuk AHA!
# Sep 11th 2009, 10:58 markstory It causes badness.
# Sep 11th 2009, 10:58 markstory because you can't do that.
# Sep 11th 2009, 10:58 markstory crayfishuk: are you extending Component?
# Sep 11th 2009, 10:58 crayfishuk http://bin.cakephp.org/view/1757311900
# Sep 11th 2009, 10:58 crayfishuk markstory: Found it... Component::beforeRedirect returns an array(); if you use a component which itself doesn't have a beforeRedirect - but which *uses* a component which has a beforeRedirect -- then method_exists returns true, but the $resp is returned from the raw Component::beforeRedirect (whcih is array() )