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
Rabbani sayyed 8Rabbani sayyed 8 

It is possible to have an extension for a custom controller? If yes can anyone share me the some basic code for how to call that both controller and extension in apex class ?

It is possible to have an extension for a custom controller? If yes can anyone share me the some basic code for how to call that both controller and extension in apex class ?
AshwaniAshwani
You can add extension to custom controller as:

<apex:page controller="AController_clone"  extension="ExtensionController" sidebar="false">
....
....
</page>

Controller:-

public ExtensionController(AController_clone controller)
    {
        .....
        // Statements
    }