Log message #1031929

# At Username Text
# Sep 11th 2009, 11:26 palam Scotto: yes, so it's more efficient
# Sep 11th 2009, 11:26 Scotto ah so make the find not work for specific controllers
# Sep 11th 2009, 11:25 palam if there is a controller or action that you don't require it, you can do it by testing $this->params['controller'
# Sep 11th 2009, 11:25 palam do the find in your app_controller's beforeFilter method
# Sep 11th 2009, 11:24 Scotto palam: can you rephrase that last comment?
# Sep 11th 2009, 11:24 palam Scotto: even if it is most of them, you can do a check and find when required
# Sep 11th 2009, 11:24 Scotto but most of the public accessible pages
# Sep 11th 2009, 11:23 Scotto palam: not all of them
# Sep 11th 2009, 11:23 palam then find and set in app_controller
# Sep 11th 2009, 11:23 palam Scotto: you have it in all your pages?
# Sep 11th 2009, 11:23 Scotto palam: what controller?
# Sep 11th 2009, 11:23 Scotto i have a "recent news" element which needs to be in a static view
# Sep 11th 2009, 11:22 palam why can't you run the find in the controller and set it? you can access it in an element you call from a view
# Sep 11th 2009, 11:21 Scotto palam: might be good to cache it but isnt neccessary right now
# Sep 11th 2009, 11:21 Scotto so i have to create a controller for 'pages'?
# Sep 11th 2009, 11:21 palam Scotto: you mean cached?
# 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!