This URL might be of some assistance to you:
http://www.php.net/manual/en/ref.classobj.php
It is a page on how to write classes and its associated member functions
in PHP. There are a couple of other pages in the documentation which
may be of assistance to you as well.
HTH!
--Sam
-Original Message-
From: Callum Urquhart [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 02, 2003 10:57 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Dealing with large classes over several files
This may well have come up before as it is an obvious problem/question.
Coming from a C++ background, I define a class in a header file and
define the functions for that class in a seperate source file. Now the
question: is this possible in PHP4?
I have tried the obvious:
// myclass.inc.php
class foo
{
// constructor and destructor
function f () {}
}
// myclass.php
function foo::f ()
{
// define here
}
This gives me an error: unexpected T_PAAMAYIM_NEKUDOTAYIM
Is this possible in PHP4, and if not, why not? It's an obvious problem,
namely for code management.
-Callum Urquhart
www.pastecode.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php