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
Request and Response Classes?
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Request and Response Classes?
Request would wrapper GET and POST. Response would wrapper the view and support redirect. Both abstract HTTP.
(#10850)