Created
January 26, 2015 16:15
-
-
Save makamo/b3f7df11906c7013349b to your computer and use it in GitHub Desktop.
J'ai cette erreur la ( ! ) Fatal error: Using $this when not in object context in /var/www/src/Equipements/Equipements.php on line 12
Call Stack
#TimeMemoryFunctionLocation
10.0003237008{main}( ).../index.php:0
20.0058269792App\Equipements\Equipements::getList( ).../index.php:51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Equipements; | |
use App\Connection\Connection; | |
class Equipements extends Connection{ | |
private $table = '"TAB_Equipement"'; | |
public static function getList(){ | |
$query = "SELECT * FROM ".$this->getTable(); | |
return Parent::getInstance()->fetchAllObj($query); | |
} | |
public function getTable() | |
{ | |
return $this->table; | |
} | |
} |
Author
makamo
commented
Jan 26, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment