HansSchouten / PHPageBuilder

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

PHPageBuilder page not found. Check your URL: http://localhost/02.186 #138

Closed M33ks closed 1 year ago

M33ks commented 1 year ago

I made a folder in the root called phpagebuilder and put the core files there, I also placed the boilerplate files in the root, I moved the config.php file to the root and set the database creds, ran the commands to create the tables, ran composer require hansschouten/phpagebuilder in the root folder, index.php says

`<?php // Uncomment to disable error reporting ini_set('display_errors', 1); error_reporting(E_ALL);

// Uncomment when using composer require_once DIR . '/vendor/autoload.php';

// Uncomment if you downloaded PHPagebuilder //require_once DIR . '/phpagebuilder/src/Core/helpers.php'; //spl_autoload_register('phpb_autoload');

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

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

?>`

in the config.php file I also removed 'assets_url' => '/assets', and replaced it with 'assets_url' => '/vendor/hansschouten/phpagebuilder/dist',

Any help at all is greatly appreciated

M33ks commented 1 year ago

I fixed my issue, I did not change 'base_url' in the config.php file