function autoloader($class) { if (strpos($class, 'Swift') === 0) { return false; } if (elxisLoader::loadClass($class)) { return true; } else {// trigger_error('Class "'.$class.'" could not be autoloaded by the Elxis loader', E_USER_ERROR); return false; }}
function autoloader($class) { if (strpos($class, 'Swift') === 0) { return false; } if (strpos($class, 'Smarty') === 0) { return false; } if (elxisLoader::loadClass($class)) { return true; } else { trigger_error('Class "'.$class.'" could not be autoloaded by the Elxis loader', E_USER_ERROR); return false; }}
If you comment that line Elxis will not generate a fatal error page when a class does not exist, neither it will write this in logs or inform you. The issue will be escalated to the next autoloader, this from smarty that will finally generate the error but in the meanwhile Elxis will generate fatal errors due to the miss of the class. I think that you should change the Elxis autoloader in order to detect classes from smarty like we have done for the Swift mailer. Smarty does use the word "Smarty" as a prefix for its classes so the problem can be easily solved:Code: [Select]function autoloader($class) { if (strpos($class, 'Swift') === 0) { return false; } if (strpos($class, 'Smarty') === 0) { return false; } if (elxisLoader::loadClass($class)) { return true; } else { trigger_error('Class "'.$class.'" could not be autoloaded by the Elxis loader', E_USER_ERROR); return false; }}Irrelevant noteI just noticed something interesting: I have written 7777 posts in this forum which started in summer 2006 (7 years old). So I have 7777 articles in 7 years!Too many seven's, it is weird!