HansSchouten / PHPageBuilder

A drag and drop page builder to manage pages in any PHP project
https://www.phpagebuilder.com
MIT License
706 stars 178 forks source link

Index.php #174

Open loganDag opened 10 months ago

loganDag commented 10 months ago

I downloaded this about a couple days ago to use for website building. The issue is I can't find the index.php. Was this somehow left out?

image

I didn't use composer since my composer broke, so I used the files for straight download.

albertlovesphp commented 10 months ago

create index.php in the root folder and add the following code:

require_once __DIR__ . '/vendor/autoload.php';

$config = require __DIR__ . '/config/config.php';

$builder = new PHPageBuilder\PHPageBuilder($config);
$builder->handleRequest();

Next rename or copy "config/config.example.php" to "config/config.php".

Edit the config file with your database configurations. Ensure to import "config/create-tables.sql" to your db.

That should work.