Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Index.php #174

Open
loganDag opened this issue Oct 19, 2023 · 1 comment
Open

Index.php #174

loganDag opened this issue Oct 19, 2023 · 1 comment

Comments

@loganDag
Copy link

loganDag commented Oct 19, 2023

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants