[eluser]tomgkelly[/eluser]
I use windows based tools for development, but most of my production sites reside on Linux servers, so I have a Linux box networked locally that I use as a development server. I developed a small temporary site (using CI) on a production server (Linux) as a place holder until site requirements were ironed out.
After I had a full set of requirements I was ready to flesh out the site, so I decided to download the code from the production site to my development Linux box. After editing the
config and
routes files I could access the site on my development box from my windows box using and internal URL. Everything seemed to be working fine. I could modify code, hit the browser refresh button and verify the changes.
The page in question has about three places that use the 'site_url' helper, one of which is a Nav link (
Code:
<a href=" <?= site_url('home') ?>">
). Clicking this nav link should reload the current page ('home page'), but instead it loads the corresponding page on the production site.
After poking around some, I discovered that the local development app is loading the config file from the Production site and not the local file.
I haven't delved into the intricacies of CI, but this seems to be a bit strange to me .... anyone have any ideas?
Tom