Mam klasę Tools. Problem pojawia się w funkcji StartTimer, pojawia się błąd:
Cytat
Fatal error: Using $this when not in object context in ... on line 1
chodzi o
$this->time_start
Tools:: StartTimer(); Class Tools{ public $time_start; private function getmicrotime(){ return ((float)$usec + (float)$sec); } public function StartTimer(){ $this->time_start = $this->getmicrotime(); } }
czemu się tak dzieje? Wszędzie mam teraz takie problemy z odwołaniem do funkcji w klasach, co się dzieje?
pozdrawiam[php][/php]