skyronic/crudkit

Empty Table

un4saken opened this issue · 1 comments

Hello,
I've just installed crudkit and set it up.

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

// Create a new CrudKitApp object
$app = new CrudKitApp ();
$app->setStaticRoot ("static/crudkit/");
$app->setAppName ("Admin Panel");

// Create a new page mapped to a table
$sqlPage = new MySQLTablePage ("customer_page", "mysqlusername", "mysqlpassword", "mysqldatabase");
$sqlPage->setTableName ("mysqltablename")
->setPrimaryColumn ("id", "Id")
->addColumn ("servis", "servis")
->addColumn ("sehir", "sehir")
->addColumn ("ilce", "ilce")
->addColumn ("semtkoykasaba", "semt-koy-kasaba", [
'validation' => [
'required' => false,
]
])
->addColumn ("servisgunleri", "servis-gunleri")
->addColumn ("suregun", "sure-gun")
->addColumn ("uzakbolgedurumu", "uzak-bolge-durumu")
->addColumn ("uzakbolgeekucret", "uzak-bolge-ek-ucret")
->setSummaryColumns(array("id","servis", "sehir","ilce","semtkoykasaba","servisgunleri","suregun","uzakbolgedurumu","uzakbolgeekucret"));

$app->addPage($sqlPage);
$app->render();`

The page is rendered but it's empty without values. I only see servis, sehir, ilce etc. as summary columns. No values at all. What is the issue?

Thanks

I fixed my issue nevermind.