Welcome Guest, Not a member yet? Register   Sign In
different behaviour when "passing on libraries" in apache/php5 and iis/php4
#2

[eluser]bAum[/eluser]
A fix for this problem is the following code snippet which I added on top of each view file.

Code:
if ( version_compare( phpversion(), '5', '<' ) ) {
        $myCI =& get_instance();
        $this->reader =& $myCI->reader;
        $this->auth =& $myCI->auth;
    }

This way, I make sure that the local references in the view actually reference the library objects of the CI object. It's quite silly though, so any help is very much appreciated.


Messages In This Thread
different behaviour when "passing on libraries" in apache/php5 and iis/php4 - by El Forum - 10-18-2007, 02:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB