shqawe
Member
I'm trying to extends Account controller for one of my addons but i'm facing problem with that 
This is how i extends the controller:
	
	
	
		
Class extension configurations at ACP:
Base class name:
but once i enable this extension and visit any link in user account i get this error
	
	
	
		
But if i extends the actual class i mean like this
	
	
	
		
Every things work fine but i think this will be conflicts with other addons as @Chris D mentioned in this post
	
	
	
		
When you're extending classes you must use the "XenForo Class Proxy System". This is how we maintain a full inheritance chain which supports multiple add-ons extending the same class.
You should change your extended class to:
	
	
	
		
Is there any solution for this issue by the way i didn't got this error in previous versions 2.2.x just in 2.3 and above.
				
			This is how i extends the controller:
		PHP:
	
	namespace shqawe\myaddon\XF\Pub\Controller;
class AccountController extends XFCP_AccountController
{
    // some functions
}Class extension configurations at ACP:
Base class name:
Extension class name:XF\Pub\Controller\AccountController
shqawe\myaddon\XF\Pub\Controller\AccountController
but once i enable this extension and visit any link in user account i get this error
		Code:
	
	Error: Class "shqawe\myaddon\XF\Pub\Controller\XFCP_AccountController" not found in src/addons/shqawe/myaddon/XF/Pub/Controller/AccountController.php at line 8But if i extends the actual class i mean like this
		PHP:
	
	namespace shqawe\myaddon\XF\Pub\Controller;
class AccountController extends \XF\Pub\Controller\AccountController
{
    // some functions
}Every things work fine but i think this will be conflicts with other addons as @Chris D mentioned in this post
		Code:
	
	class User extends \XF\Entity\UserWhen you're extending classes you must use the "XenForo Class Proxy System". This is how we maintain a full inheritance chain which supports multiple add-ons extending the same class.
You should change your extended class to:
		Code:
	
	class User extends XFCP_UserIs there any solution for this issue by the way i didn't got this error in previous versions 2.2.x just in 2.3 and above.
 
 
		
 
 
		 .
. 
 
		 
 
		 
 
		