Date: 04/26/01
- Next message: Pascal Jolin: "Re: [phplib] I need relogin?"
- Previous message: Chris Padfield: "[phplib] Changes to template.inc"
- Next in thread: Adam Robertson: "RE: [phplib] Class declaration may not be nested..."
- Reply: Adam Robertson: "RE: [phplib] Class declaration may not be nested..."
- Reply: Pascal Jolin: "Re: [phplib] Class declaration may not be nested..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I get an error that says "Class declarations may not be nested in test.php on line 4".
Here's an example code to explain the problem. The error is in this part of code where there's a call to create a new instance of Template Class. for example,
class myClass {
function printSomething($str) {
require "template.inc";
$t = new Template();
echo "$str";
}
}
A call to above function printSomething() displays that error message.
What is the cause of this problem ? I'm using php 4.0.1pl1 and phplib 7.2c.
Any help would be highly appreaciated.
Thanks,
Sivaprasad R.L
_____________________________________________________
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Pascal Jolin: "Re: [phplib] I need relogin?"
- Previous message: Chris Padfield: "[phplib] Changes to template.inc"
- Next in thread: Adam Robertson: "RE: [phplib] Class declaration may not be nested..."
- Reply: Adam Robertson: "RE: [phplib] Class declaration may not be nested..."
- Reply: Pascal Jolin: "Re: [phplib] Class declaration may not be nested..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

