Activity Forums Salesforce® Discussions What is the controller extension in Salesforce?

  • shariq

    Member
    September 22, 2018 at 10:38 pm

    Any apex class having a public constructor with Custom Controller or Standard Controller object as a single argument is known as controller extension.

  • Parul

    Member
    September 23, 2018 at 3:34 am

    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.

  • Unknown Member

    Member
    January 18, 2024 at 1:10 pm

    Hey everyone, I'm write my case brief about the concept of 'controller extension' in Salesforce. The term seems crucial for building custom functionality, and I've got the basics down, thanks to the info on Apex programming language and Visualforce pages. However, I'm wondering if anyone has some tips for practical examples or potential challenges related to controller extensions. Any insights or guidance would be much appreciated as I dive deeper into this topic for my case brief. Thanks in advance!

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos