Page 1 of 1

Request and Response Classes?

Posted: Tue Oct 14, 2008 4:49 am
by Kadanis
Hi All,

I've been playing around with OOP PHP for a little while now as I try to move myself away from procedural, and as part of that I was looking into some framework stuff. I found Chris Corbyn's post (I know it's old) on Front Controllers and had a read/play with it

http://www.w3style.co.uk/a-lightweight- ... -for-php-5

Now I seem to have it working fine which is great, but I want to take this further. Chris recommends looking at the Request and Response stuff next, but although I looked at his suggestions (symfony and java servlets) I'm not 100% on what these classes should be doing. I gather its to do with the POST, GET and SESSION but that's about it.

A little guiding light would be great so I can have a crack at writing my own. Learn by doing and all that

Thanks in advance

Re: Request and Response Classes?

Posted: Tue Oct 14, 2008 4:56 am
by Christopher
Request would wrapper GET and POST. Response would wrapper the view and support redirect. Both abstract HTTP.