Setup Codeigniter
Introduction
Symox is built with Codeigniter 4.1 and Bootstrap 5.3.2 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.x installed & running in your computer.
-
Composer
Make sure to have the Composer installed & running in your computer.
-
Create Database
To create a database, create via Manual tool of PhpMyAdmin Localhost Server Using
Xampp
. -
Please fill your DB credentials in the app/Config/Database.php file.
Make Sure First You have Created DB in Your PhpMyAdmin Localhost Server Using
Xampp
.Let’s set the value for those to connect with database
'username' => 'root',
'password' => '',
'database' => 'symox',
'DBDriver' => 'MySQLi',
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 migrate
|
This will migrate the database tables, For more details visit https://codeigniter4.github.io/userguide/dbmgmt/migration.html. |
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.