$this en Class

From: Date: Wed, 16 Apr 2008 14:14:48 +0000
Subject: $this en Class
Groups: php.general.es 
Request: Send a blank email to general-es+get-62500@lists.php.net to get a copy of this message
Tengo una clase, simple que se ve así: class Start { public function Iniciar() { $this->InicioSession(); echo "hola"; } public function InicioSession() { session_start(); ob_start(); } } Pero cuando llamo a la clase así: Start::Iniciar(); Me dice: *Fatal error*: Using $this when not in object context in * C:\wamp\www\lntv\site\admin\inc\class\start.php* on line *7 *Que es esto?, y como lo resuelvo?. Gracias. Emiliano J. Horcada

« previous php.general.es (#62500) next »