[eluser]James Gifford[/eluser]
This problem exists only in the svn version of CI, not the official 1.6.1 release.
I like to use a partial view system with my projects where I load pieces of a page into a main view "skeleton" file. For example, the view file "post.php" might contain the HTML for one blog post and could be loaded several times with different data to display a full page of posts. This works fine so far as of CI 1.6.1, but a change made to the svn version breaks the technique.
According to the change log, on March 17th the function call on line 708 of Loader.php was changed from include to include_once. Among other things, this prevents partial view files with the same name from being loaded more than once per page.
I know there has been much discussion on this issue in the forums and I also realize my view organization technique is not officially supported in CI (I use a custom view library), but I'd like to report this as a potential bug regardless.
Maybe there is a way to allow the use of include for loading views and include_once for everything else?