guiltar
Well-known member
When I try to extend multiple controllers by one class Application declares this class twice and gives error:
The problem can be easily solved replacing the line 397:
by
Please, add some condition to check if class if declared already. Extending multiple classes by one is very important thing. Especially for widgets since they actively use controller methods but may do same things on different controllers.
Code:
Fatal error: Cannot redeclare class XFCP_Social_ControllerPublic_Widgets in .../Application.php(397) : eval()'d code on line 1
PHP:
eval('class ' . $proxyClass . ' extends ' . $createClass . ' {}');
PHP:
if(!class_exists($proxyClass, 0)) // 0 - without autoload
{
eval('class ' . $proxyClass . ' extends ' . $createClass . ' {}');
}