I saw some posts related to APEX triggers and recently one below,
in which the trigger have few lines,
ApexPAges.StandardController sc = new ApexPages.StandardController(projectMap.get(pro.id)); ProjectTaskExtension projExtClass = new ProjectTaskExtension(sc); projExtClass.updateTasks(projectMap.get(pro.id));
Is that a best practice to call a controller inside of a trigger and use it to achieve something? Calling a controller would affect the performance of the trigger? Would it be a best practice doing so? Any suggestions.