public function findAll() {
$stmt = $this->pdo->prepare('SELECT * FROM `' . $this->table . '`');
$stmt->execute();
return $result->fetchAll();
}
last line should read return $stmt->fetchAll();
there is no variable name $result
Link to content: PHP & MySQL: Novice to Ninja, 7th Edition - Section 8