note 21629 rejected from function.include by torben

From: Date: Tue, 21 May 2002 18:47:07 +0000
Subject: note 21629 rejected from function.include by torben
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-30857@lists.php.net to get a copy of this message
I cannot find a way to get includes to work inside a class definition. I have a class with a whole lot of functions and I want to split these functions into separate files to make it easier to manage. When I add the include() call to the class I recieve an error some thing like: parse error: expecting T_VARIABLE..blah blah blah This is a rough idea of how I'm using the include statement: class foo { var $one; var $two; include("functions.php"); } Does anyone have an idea??

« previous php.notes (#30857) next »