[eluser]Dahak-II[/eluser]
I've seen this behavior in previous versions of CI, but it never bothered me until my recent attempts to debug my CI2.0 install.
I'm running a LAMP set up for 'production' and WAMP for developing.
In the dev system, if I clear the log file, load a controller, then check the log, I see one set of log entries.
On the LAMP box, I do the same and I'll see three or even four instances of log entries, often intermixed, for the one controller call.
I wrote the base code about 17 months ago, but I don't recall any need for any sort of redirects being incorporated.
Has anyone seen similar behavior? If so, do you know the cause?
The reason I ask is that I slapped in a logging function into the ROUTER core file so I can record the values of the
uri->uri_string,
uri->segments and
uri->rsegments at various points in the ROUTER execution to try to hunt down my LAMP CI2.0 routing problem.
In an example I had last night, I ran into an instance where I got
four sets of log entries on a single controller call and one of them had no set of uri values, causing the default controller to load... which was the end result of the page load.