function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Eren MitashiEren Mitashi 

can we call more than one apex controller in vfpage, If yes then how?

I tried to fetch multiple class in a vf page but don't get idea how to fetch it Please help me?
VinayVinay (Salesforce Developers) 
Hi Eren,

You can use extensions with custom controllers.
 
<apex:page controller="testcontroller" extensions="controller1, contoller2">

Reference:
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_extension.htm

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,
Akshay Dhiman 63Akshay Dhiman 63
Hi Eren,

Yes, We can call multiple apex controller from vf page just by putting controller="Class_Name1,Class_Name2,Class_Name3".

Hope this explanation will resolve your query. Mark it as the best answer if you find it helpful.

Thanks
Akshay