Using the sample code (example.php, Enterprise v2.6.10) I'm getting the HTTP 500 death error. The config.php is straight out of the zip, database.php is modified to match my mysql connect values (can connect via phpmyadmin, Adminer, Excel extracts, etc.)
This works...
<?php
try {
$user = "xxxx";
$pass = "xxxx";
$dbh = new PDO('mysql:host=localhost;dbname=dbXXX', $user, $pass);
foreach($dbh->query('SELECT * from tblXXX') as $row) {
print_r($row);
}
$dbh = null;
} catch (PDOException $e) {
print "Error!: " . $e->getMessage() . "<br/>";
die();
}
?>
This throws the 500 error... never gets to the phpinfo() call...
...
include("../libraries/autoload.php");
use GroceryCrud\Core\GroceryCrud;
$database = include('database.php');
$config = include('config.php');
$crud = new GroceryCrud($config, $database);
phpinfo();
Help!