Hi there,
I have downloaded the framework and added it to the htdocs folder and renamed the base URL in the config.php file according to the instructions on the Youtube video. But when loading the URL in my browser, I do not see the same screen as in the Youtube video. Instead I just see the following in plain text:
"//The main config file define('BASE_URL', 'http://localhost/my_app'); define('ENV', 'dev'); define('DEFAULT_MODULE', 'welcome'); define('DEFAULT_CONTROLLER', 'Welcome'); define('DEFAULT_METHOD', 'index'); define('MODULE_ASSETS_TRIGGER', '_module'); define('INTERCEPT_404', 'trongate_pages/attempt_display');
Fatal error: Uncaught Error: Undefined constant "BASE_URL" in C:\xampp\htdocs\my_app\engine\ignition.php:24 Stack trace: #0 C:\xampp\htdocs\my_app\engine\ignition.php(97): get_segments() #1 C:\xampp\htdocs\my_app\public\index.php(2): require_once('C:\\xampp\\htdocs...') #2 {main} thrown in C:\xampp\htdocs\my_app\engine\ignition.php on line 24"
Is there something else I need to do? Perhaps there is a configuration error?
Why is it not loading properly?
2 years ago
2 years ago
#1
2 years ago
#2
Hello Kye,
Can you try this again, assuming you are not using the Desktop App to install Trongate:
Open a command prompt or the Windows terminal and 'cd' to 'c:\xampp\htdocs' and run this command if you have git installed
if not download the Trongate framework as a zip file from GitHub and extract it to a 'my_app' folder in 'htdocs'. Ensure the Xampp control panel is running Apache and MariaDB (both are green). Open the 'my_app' in your favourite editor and edit 'config.php' in the config folder of your app. Change the 'BASE_URL' to read as follows - NOTE the trialling '/' slash at the end:Then run 'phpMyAdmin' and create a new database called 'my_app'. Open 'database.php' in the config folder and edit it to read this (assuming you are using 'root' as your user and it has no password set)Then open a browser and type this in the URLIf you have followed the instructions above all should be working and should be seeing the database import wizard. Once complete (with no errors) you will be presented with the welcome page. Alternatively, download and install the Desktop App and create a new Trongate app via it - it is SO much more simple than doing the above.
Can you try this again, assuming you are not using the Desktop App to install Trongate:
Open a command prompt or the Windows terminal and 'cd' to 'c:\xampp\htdocs' and run this command if you have git installed
if not download the Trongate framework as a zip file from GitHub and extract it to a 'my_app' folder in 'htdocs'. Ensure the Xampp control panel is running Apache and MariaDB (both are green). Open the 'my_app' in your favourite editor and edit 'config.php' in the config folder of your app. Change the 'BASE_URL' to read as follows - NOTE the trialling '/' slash at the end:Then run 'phpMyAdmin' and create a new database called 'my_app'. Open 'database.php' in the config folder and edit it to read this (assuming you are using 'root' as your user and it has no password set)Then open a browser and type this in the URLIf you have followed the instructions above all should be working and should be seeing the database import wizard. Once complete (with no errors) you will be presented with the welcome page. Alternatively, download and install the Desktop App and create a new Trongate app via it - it is SO much more simple than doing the above.