Reputation: 3371
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.
Upvotes: 0
Views: 2346
Reputation: 42450
You don't need to link the existing index.php
to your codeIgniter code. The existing index.php
is only a place holder.
Place all your CI files into the www root of your XAMPP server such that CI's index.php
replaces the already existent index.php
Your current folder structure should be something like this
- www
-- index.php (the placeholder index.php)
Your new folder structure should be like this
-- www
---- index.php (CI's index.php)
---- application
---- system
Upvotes: 1