About this question
What is the use of ApexPages.StandardController in the below? What is standard controller salsforce?
Code
public class myControllerExtension { private final Account acct; public myControllerExtension(ApexPages.StandardController stdController) { this.acct = (Account)stdController.getRecord(); } public String getGreeting() { return 'Hello ' + acct.name + ' (' + acct.id + ')'; } }Markup
{!greeting}