Activity › Forums › Salesforce® Discussions › What is the controller extension in Salesforce?
Tagged: Apex Class, Controller Extension, Custom Controller, Salesforce Visualforce Page, Standard Controller
-
What is the controller extension in Salesforce?
Posted by Aman on September 22, 2018 at 10:38 PMWhat is the controller extension in Salesforce?
Parul replied 7 years, 7 months ago 3 Members · 2 Replies -
2 Replies
-
Any apex class having a public constructor with Custom Controller or Standard Controller object as a single argument is known as controller extension.
- [adinserter block='9']
-
Controller Extension is very useful and important concept introduced by the salesforce recently. It gives the power to the programmer to extend the functionality of existing custom controller or standard controller.
A Visualforce can have a single Custom controller or standard controller but many controller extensions.
we can say that the custom extension is the supporter of custom or standard controller.Consider one example: If there is one controller written and used by the multiple Visualforce pages and one of them needs some extra logic. Then instead of writing that logic to controller class (Which is used by many Visualforce pages) we can create a controller extension and apply to that page only.
Log In to reply.