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
Aftab Alam 5Aftab Alam 5 

who will execute first StandardControler OR extension Custom controller with same method?? Such as in page we are calling method {!save}

who will execute first - StandardControler OR extension Custom controller with same method name ?? Such as in page we are calling method {!save} 
RakeshRakesh (Salesforce Developers) 
Hi Aftab,

You can specify standard controller and extensions with the same methods. This is an excellent way for overriding the save, update methods.

To specify standard controller & Extension, the proper syntax is:
<apex:page standardController="Account" extensions="Extn">
Keep in mind that the first standard controller takes precedence over the extension. That means the "Account" controller would be called in this case.

Use the below links as a reference to learn more about Controllers and Extensions:
Please mark it as solved if this reply was helpful.

Thanks,
Rakesh