if (phpversion() >= "5.3") {
$root = __DIR__;
} else {
$root = dirname(__FILE__);
}
define("APP_PATH", $root);
date_default_timezone_set('Asia/Chongqing');
$app = new Yaf_Application(APP_PATH."/conf/application.ini");
$app->bootstrap()->run();
$root = __DIR__;
} else {
$root = dirname(__FILE__);
}
define("APP_PATH", $root);
date_default_timezone_set('Asia/Chongqing');
$app = new Yaf_Application(APP_PATH."/conf/application.ini");
$app->bootstrap()->run();
2015-06-12
__clone()方法里的两条语句是 clone 本来就有的,所以不定义__clone() 结果也是一样的。建议 改成 echo something,以免大家误会
2015-06-12
class Truck extends Car{
public function speedUp(){
parent::speedUp();
$this ->speed +=50;
return $this ->speed;
}
}
public function speedUp(){
parent::speedUp();
$this ->speed +=50;
return $this ->speed;
}
}
2015-06-12