Welcome Guest, Not a member yet? Register   Sign In
SVN 1.7 Profiler error
#2

[eluser]beemr[/eluser]
Wow. Am I the only one?

Anyhoo. Line 298 calls for $this->CI->router but the router class can't be called like a normal CI class.

So, the new controller profiler function needs an instance of the router class. Normally, this is $RTR. Here's the new function:
Code:
function _compile_controller_info()
    {    
        $RTR =& load_class('Router'); //grab an instance of Router;

        $output  = "\n\n";
        $output .= '<fieldset style="border:1px solid #995300;padding:6px 10px 10px 10px;margin:20px 0 20px 0;background-color:#eee">';
        $output .= "\n";
        $output .= '<legend style="color:#995300;">&nbsp;&nbsp;'.$this->CI->lang->line('profiler_controller_info').'&nbsp;&nbsp;</legend>';
        $output .= "\n";

        // fetch_class() and fetch_method() are now called from $RTR instead of $this->CI->router;
        $output .= "<div style='color:#995300;font-weight:normal;padding:4px 0 4px 0'>".$RTR->fetch_class()."/".$RTR->fetch_method()."</div>";                

        
        $output .= "</fieldset>";

        return $output;    
    }


Messages In This Thread
SVN 1.7 Profiler error - by El Forum - 09-23-2008, 07:03 PM
SVN 1.7 Profiler error - by El Forum - 09-24-2008, 12:55 PM
SVN 1.7 Profiler error - by El Forum - 09-24-2008, 02:17 PM
SVN 1.7 Profiler error - by El Forum - 09-24-2008, 02:24 PM
SVN 1.7 Profiler error - by El Forum - 09-24-2008, 02:34 PM
SVN 1.7 Profiler error - by El Forum - 10-01-2008, 08:45 AM
SVN 1.7 Profiler error - by El Forum - 10-01-2008, 05:21 PM
SVN 1.7 Profiler error - by El Forum - 10-17-2008, 04:37 PM
SVN 1.7 Profiler error - by El Forum - 10-17-2008, 09:07 PM
SVN 1.7 Profiler error - by El Forum - 10-18-2008, 01:15 AM
SVN 1.7 Profiler error - by El Forum - 10-18-2008, 01:21 AM
SVN 1.7 Profiler error - by El Forum - 10-18-2008, 08:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB