Get the version codeIgniter
Get the version codeIgniter
In this tutorial, we will try to find the solution to "Get the version codeIgniter" through programming.
Create a view file under views directory (app\Views\) and place code \CodeIgniter\CodeIgniter::CI_VERSION; in it and visit the route URL to get the version of codeIgniter.-
Get the version of codeigniter 4
app\Views\<welcome_message>.php
File name may be different if you created a new file.
<?= \CodeIgniter\CodeIgniter::CI_VERSION; ?>
To define route place code in
Routes.php
file under/app/Config
directory.$routes->get('/', 'Home::index');
Controller's code in
Home.php
file under/app/Controllers
directory.<?php namespace App\Controllers; class Home extends BaseController { public function index() { return view('welcome_message'); } }
If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.
Don't forget to share this article! Help us spread the word by clicking the share button below.
We appreciate your support and are committed to providing you valuable and informative content.
We are thankful for your never ending support.
Random Code Snippet Queries: CodeIgniter
- How to create custom helper in codeigniter 4
- Convert dd/mm/yyyy to yyyy-mm-dd in codeigniter
- Update an existing table record with +1 in CodeIgniter
- Unable to set session in codeigniter
- How to get field names of table in Codeigniter
- How to select all checkbox in Codeigniter
- Get last executed query in codeigniter
- How to load a view in CodeIgniter?
- Default htaccess file code Codeigniter
- How to call helper function in Codeigniter view
- Call to undefined function CodeIgniter\locale_set_default()
- No input file specified Codeigniter
- How to move from one view to another in Codeigniter
- Codeigniter 4 call model function from controller