Request and Response Classes?

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
User avatar
Kadanis
Forum Contributor
Posts: 180
Joined: Tue Jun 20, 2006 8:55 am
Location: Dorset, UK
Contact:

Request and Response Classes?

Post 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
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Request and Response Classes?

Post by Christopher »

Request would wrapper GET and POST. Response would wrapper the view and support redirect. Both abstract HTTP.
(#10850)
Post Reply