Dan Pepin
unread,Mar 26, 2011, 1:04:38 AM3/26/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cis605
Okay, so I uploaded a file to the i2c repository titled 'internship-
request_test.php'.
It is a demo file that shows how to create an HTML file as a Class.
It has several benefits, although it was a pain to set up.
Mihaela, you should check it out. It may not work perfectly (database
issues), but the code works fine.
It's a cool concept, and I actually really like the design.
The variables are visible in all the functions ($this->variable). The
HTML is written 'outside' of the Class, so I used getters to access
the private variables. No need for setters. Others may not need to
have the HTML on the outside of the class, but for my file, it was
necessary to have the HTML be external.
So.... tired....