Get the version codeIgniter

Updated at 29-Aug-2022, By samar

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 `` in it and visit the route URL to get the version of codeIgniter.
  • Get the version of codeigniter 4


    File name may be different if you created a new file.


    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.

    namespace App\Controllers;
    class Home extends BaseController
    	public function index()
    		return view('welcome_message');

Back to code snippet queries related codeIgniter