Log message #109621

# At Username Text
# Aug 7th 2008, 11:59 charun I set the cookie name in /config/core.php Configure::write('Session.cookie', 'GUA');
# Aug 7th 2008, 11:57 charun if I call $this->Session->write($userData); in a controller-function, it writes something to a NEW session, not the one which is already open for the user.
# Aug 7th 2008, 11:57 jaredhoyt but i don't know, i've never used actionscript
# Aug 7th 2008, 11:57 jaredhoyt charun: might be the session cookie name
# Aug 7th 2008, 11:55 charun Hi masters of tasty pastry. I have a problem with accessing a session when calling a cake function via RPC from a flash.swf on a webpage. Does anyone have experience with Sessions and RPC?
# Aug 7th 2008, 11:51 jaredhoyt ;)
# Aug 7th 2008, 11:51 tbranyen oh man i feel like an idiot, there is an entire section dedicated to sanitization in the manual
# Aug 7th 2008, 11:50 tbranyen As an IT student i have no idea what a manual is
# Aug 7th 2008, 11:48 jaredhoyt tbranyen: the manual is good too ;)
# Aug 7th 2008, 11:45 tbranyen I'm gonna need to spend a few days just reading the api
# Aug 7th 2008, 11:45 tbranyen ah okay sweet so its not built into the model hierarchy
# Aug 7th 2008, 11:44 teknoid tbranyen: see Sanitize class, also data is made safe for insertion autmotically
# Aug 7th 2008, 11:43 tbranyen i guess the term would be sanitation
# Aug 7th 2008, 11:38 teknoid you probably need to add more for textareas, etc.
# Aug 7th 2008, 11:37 teknoid form inputs
# Aug 7th 2008, 11:37 teknoid tesh: np, yes validation adds this class to your form
# Aug 7th 2008, 11:37 tesh teknoid: ah, it gives the input a class already!? I've been trying to work out how to do that for myself!! thanks for that!
# Aug 7th 2008, 11:36 teknoid tesh: input.form-error { border: 1px solid red; }
# Aug 7th 2008, 11:32 loki_racer haha........i could load the js from the component that is loading the data for each element, but that means our designers would need to touch components and as of right now they only open the /app/view folder
# Aug 7th 2008, 11:32 tesh hi, I want to display a red border around a form input if validation fails - how would I do that
# Aug 7th 2008, 11:32 ADmad loki_racer: all i can say is you need to figure out a way to work around this limitation :)
# Aug 7th 2008, 11:30 jYeckel i though array('between' => array(1,2)) shoudl work
# Aug 7th 2008, 11:30 loki_racer each of those elements has its own js that I only want to load when it is loaded
# Aug 7th 2008, 11:30 jYeckel to include the condition type
# Aug 7th 2008, 11:30 jYeckel thanks man i didnt think of renaming the key field
# Aug 7th 2008, 11:30 loki_racer Admad: I'm writing a CMS and need to be able to load and unload elements(widgets) on any page in any column on the page
# Aug 7th 2008, 11:30 ADmad jYeckel: :)
# Aug 7th 2008, 11:29 ADmad *from layout.. damm typos
# Aug 7th 2008, 11:29 jYeckel you rox ADmad :D
# Aug 7th 2008, 11:29 ADmad loki_racer: if an element if being called form layout it means its most likely being called all the times.. so just put the script in head directly... or in an if block
# Aug 7th 2008, 11:28 loki_racer painful
# Aug 7th 2008, 11:28 ADmad loki_racer: afaik
# Aug 7th 2008, 11:28 ADmad loki_racer: no
# Aug 7th 2008, 11:28 jYeckel one sec
# Aug 7th 2008, 11:28 jYeckel hmm
# Aug 7th 2008, 11:28 loki_racer ADmad so there is no way to have an element called from the layout to load js files into the <head>?
# Aug 7th 2008, 11:27 ADmad jYeckel: "Resource.month BETWEEN ? AND ?" => array(3,12)
# Aug 7th 2008, 11:27 jYeckel yeah i just cant figure out how to do a between in a where
# Aug 7th 2008, 11:25 jYeckel nope :(
# Aug 7th 2008, 11:25 jYeckel wait i think i got it :D
# Aug 7th 2008, 11:22 jYeckel http://pastie.org/249274 updated my pastie with the generated sql wondering what i can do to fix the betweens i tried to assign my mont an array( 'between' => array('1','2')) but didnt work