Month: February 2023

Codeigniter 4 – How to Pass value from controller to view

Passing a value from a Controller can be done in 3 ways: Using an array variable Using the Array function Using the Compact function Sample 1 – Using an array variable Controller – App/Controllers/Site.php Controllers > Site.php public function index() { $data = array( "name" => "Online Tutorial", "author" => "Mj Octavio", "email" => "support@programm3r.com" …

Codeigniter 4 – How to Pass value from controller to view Read More »

CodeIgniter 4 – Sample blog admin panel with bootstrap

Assumption You already had installed Composer You already had installed Visual Studio Code Please note that this is a brief tutorial about creating a blog app in CodeIgniter4.  Contents Installation Run Local Development Server Environment Variable Create Site Controller  Installation Type the following command  composer create-project codeigniter4/appstarter blog This will create a CodeIgniter4 project named …

CodeIgniter 4 – Sample blog admin panel with bootstrap Read More »