View Single Post
  #3  
Old 12-22-2015, 10:12 AM
 
codegrunt codegrunt is offline
 

Member
  
Join Date: Dec 2015
Posts: 10
 

Default Re: extending / overriding product search

In case this helps anyone else, if you want to see what files are actually being loaded during execution (so as to find what file you need to replicate or change), you can do this by temporarily adding some code to the autoloader class (starts at line 101):

includes/autoloader.php

Code:
public static function __lc_autoload($class) { $class = ltrim($class, '\\'); list($prefix) = explode('\\', $class, 2); // Workaround for Doctrine 2 proxies if ( ($prefix === LC_NAMESPACE || $prefix === LC_NAMESPACE . 'Abstract') && false === strpos($class, \Doctrine\Common\Persistence\Proxy::MARKER) ) { // start temp logging of file loading if($fp=fopen(__DIR__.'/../debug.log','a')) { fputs($fp,'['.date('YmdHis').']'.static::$lcAutoloadDir . str_replace('\\', LC_DS, $class) . '.php'."\n"); fclose($fp); } // end logging include_once (static::$lcAutoloadDir . str_replace('\\', LC_DS, $class) . '.php'); } }
__________________
multiple versions (4 and 5)
Reply With Quote