Setup Codeigniter
Introduction
Borex is built with Bootstrap v5.3.3 and Codeigniter 4 with developer friendly code. You can simply change the layouts and mode using this template.
Installation
Please follow below steps to install and setup the admin theme, follow below-mentioned steps:
-
Xampp
Make sure to have the Xampp with PHP v8.2 or above version installed & running in your computer.
-
Composer
Make sure to have the Composer installed & running in your computer.
After you finished with the above steps, you can run the following commands into the terminal / command prompt from the root directory of the project to run the project locally or build for production use:
| Command | Description |
|---|---|
composer install
|
This would install all the required packages in
the vendor folder. If you getting any error when running composer install command, don't worry please continue with : composer update
|
php spark serve
|
Runs the project locally. The development server is accessible at http://localhost:8080. |
php spark serve --port=8081
|
If You Wish to Runs the project locally on Different Port. The development server is accessible at http://localhost:8081. |
Multi Language Settings
You can refer the below link for more details.
https://codeigniter4.github.io/userguide/outgoing/localization.html
- Set default changes in app/Config/App.php
- You can add or remove languages from the array $supportedLocales = ['en', 'es', 'de', 'it', 'ru'];
- You need to update or add folder of the new language in the
app/Language - You simply use in the views like the below example:
<?= lang('Files.Dribbble') ?>
Tips
If you are hosting on linux apache server then make sure to give path to public folder while hosting your project on server.