you can't make a method named "new" :closedeyes:
you may try this:
class abc {
function new() {
echo "abc";
}
}
any idea about this? :confused:
class abc {
function new() {
echo "abc";
}
}
|
|
|
class shopping_cart {
function empty() {
}
}
[COLOR=#007700]class shopping_cart {
function empty() {
}
}[/COLOR]Lets look at this example a little closer. Add the following lines before it:ini_set('display_errors',1);
error_reporting(E_ALL|E_STRICT);And it shall state an obvious error. Your error reporting looks turned off, It'd be of help to turn it on!
paolodinhqd said:
class shopping_cart {
function empty() {
}
}