MySQL Database Error: "Call to a member function getSummaryConfig() on null" #67

Open
maanitm opened this Issue Jul 31, 2016 · 0 comments

Projects

None yet

1 participant

@maanitm
maanitm commented Jul 31, 2016

Hello,
I have been using crudkit to connect my MySQL databases data too. Here is my MySQL Page:

<?php

require "vendor/autoload.php";
use CrudKit\CrudKitApp;
use CrudKit\Pages\MySQLTablePage;

// Create a new CrudKitApp object
$app = new CrudKitApp ();

$page = new MySQLTablePage("users", "root","995WgOJx20dKoEHFcK", "seven_ages", array('charset' => "UTF8"));
$page->setName("Users")
    ->setPrimaryColumn("id")
    ->setTableName("users")
    ->addColumn("first_name", "First Name")
    ->addColumn("email", "Email")
    ->addColumn("password", "Password")
    ->addColumn("birth_date", "Birth Date")
    ->addColumn("verify_link", "Verification Link")
    ->setSummaryColumns(array("id", "First Name", "Email"));
$app->addPage($page);

// Render the app. This will display the HTML
$app->render ();

?>

When I run this, I get this error:

screen shot 2016-07-31 at 6 57 32 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment