Hello PHPers,
I have a collection of about 60 objects (class definitions). They are
all very similar. They all share a substantial % of the same core. But
they all have slight variations as well. The approach I took was to
make an abstract core class, and each of the 60 objects extends that
Set up autoloading:
http://php.net/manual/en/language.oop5.autoload.php
Cheers,
Rob.
Daniel Kolbo wrote:
Hello PHPers,
I have a collection of about 60 objects (class definitions). They are
all very similar. They all share a substantial % of the same core. But
they all have slight
On Sunday 20 December 2009 10:35:56 am Daniel Kolbo wrote:
Hello PHPers,
I have a collection of about 60 objects (class definitions). They are
all very similar. They all share a substantial % of the same core. But
they all have slight variations as well. The approach I took was to
make
On Sunday 20 December 2009 1:08:46 pm you wrote:
Maybe this would be the perfect opportunity for the php autoload
functions...?
Thanks for your help/thoughts/comments,
dK
`
Yep, this is a textbook case for a proper autoload setup. And no,
cramming all of the functionality into
I am starting to get a handle (I think) on OOP. I was wondering if
anyone would care to comment on what I think I understand:
For simplicity's sake class.php contains AddItem() and DisplayItems().
Since submitting form data
?php
include('class.php');
If(!$_POST['submit']){ //Do I need to
I have several web projects that are all database driven. I have recently been diving
into OOP, and rewriting a lot of procedural code in OOP. I have a design question
about handling the MySQL connection.
I have a mysql() class which handles all my queries, automatic inserts/updates, etc.
Just
Answer - use PEAR for both your database connection and as a data modeling
layer:
http://pear.php.net
check the documentation for more info.
neko
Joseph Szobody [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I have several web projects that are all database driven. I have recently
At 14:24 04.03.2003, Joseph Szobody spoke out and said:
[snip]
I have several web projects that are all database driven. I have recently
been diving into OOP, and rewriting a lot of procedural code in OOP. I have
a design question about handling the MySQL
8 matches
Mail list logo