This project has made me have to take a step back and at the same time, take a step up. Today i have learned that to make a web page you do not need to put ANY html in it at all.... this was some what of a daunting concept, since my learning is centre around traditional HTML/CSS etc. So now we throw in OOP PHP... well as Darren Stephens will attest to, i was some what perplex/confused/down right Stupefied!
OOP (for people that do not know) stands for Object Orientated Programming. In first year of my BSc we touched on this and if I'm honest i fell over at the first attempt.. i simply was not very good at it. i have struggled to grasp the concept of OOP ever since. to my surprise i manged to explain to a non Programmer how OOP works (in an abstract context)
I told martin (one of the Players on my pool team) that OOP works something like this:
A house is a OBJECT
A house has windows which is a CLASS with in the object
A window has ATTRIBUTES like size colour
A window has METHODS like Open close
A window can have an INSTANCE of the class, so Stained glass is different type of Window but still falls in the class of window.
he got the jist of it, but tbh i wasn't 100% sure if i was right about it, but i digress.
the following is a snippet of Code from the wild project html Client page:
Coorrrrreecctiiioonnnn i was going to, but basically Blogger wont let me and i could not find any thing in the help pages to change this...
I'll be back later with Screenshots...
a disgruntled ~Keith
Told you i would be back! Ok our HTML code samples:
in here you can see the standard HTML is present and the php function for connecting to a database and calling a query.
Ok now this is the same code in OOP PHP:
In the words of a favorate Character of mine "It not even sound same!"