-
Notifications
You must be signed in to change notification settings - Fork 9
Setting up Standalone Pages
After following the composer installation process you will have a folder called 'vendor' in your installation directory.
If you're working locally, your installation directory will be your web root.
Otherwise, upload the vendor folder to your remote web root.
To be able to test your installation you will need to ensure Pages is called properly, and is able to access files stored in the standard folder structure. Additionally, you will need an .htaccess file for routing and some config files.
Your index.php file will intercept all requests, and use the Pages router to direct them to the correct page. To do this, we need to instansiate the bootstrapper in the vendor directory.
Here is the contents of the index.php in the web root:
`
define('KOOWA_ROOT', __DIR__); define('KOOWA_DEBUG', 1); require KOOWA_ROOT.'/vendor/joomlatools/pages/resources/pages/bootstrapper.php'; ` *Note - debugging is turned on in this example. ### Configuration options There are three configuration files required for standalone: config.php /config -> koowa.php /config -> pages.php In the web root, the config.php file sets up * aliases for important locations; theme files, images, etc * where your extensions folders are (if required) * Logging and cache locations * custom configuration options The default config.php should look like this: ` KOOWA_ROOT.'/cache', 'log_path' => KOOWA_ROOT.'/logs', 'aliases' => [ 'theme://' => '/theme/', 'images://' => '/images/', ], 'extension_path' => [ PAGES_SITE_ROOT . '/extensions', KOOWA_ROOT.'/extensions', ], 'extension_config' => [ //custom config ] ]; `Got a question or need help? We have a forum on Github Discussions where you can get in touch with us.