Thursday, 31 October 2013

Opencart view file path

Add this line into system/engine/controller.php just after the $this->output = ob_get_contents(); on (or about) line 65.

CODE: SELECT ALL
           if( strpos( $_SERVER[ 'SCRIPT_FILENAME' ], '/admin/' ) === false )
              $this->output = '<div style="margin:2px;border: 1px red solid;display:inline-block;"><div style="float:left;color:white;background-color:red;">' . $this->template . '</div><div>' . $this->output . '</div></div>';

No comments:

Post a Comment