So, I’m fairy new to web development, and I’ve created some HTML pages and put them into Codeigniter. I’m now trying to use XAMPP to host the site from my local machine and would like to link the Codeigniter code to it, but I’m not sure how to do this.
I’ve tried to use linking code in the XAMPP index.php file but I’m unsure of the correct way to do this (since all my previous attempts have failed). Advice would be greatly appreciated.
You don’t need to link the existing
index.phpto your codeIgniter code. The existingindex.phpis only a place holder.Place all your CI files into the www root of your XAMPP server such that CI’s
index.phpreplaces the already existentindex.phpYour current folder structure should be something like this
Your new folder structure should be like this