Newer Version Available
Creating an Apex Server-Side Controller
Use the Developer Console to create an Apex server-side
controller.
- Click .
- Click .
- Enter a name for your server-side controller.
- Click OK.
-
Enter a method for each server-side action in the body of the class.
- Click .
- Open the component that you want to wire to the new controller class.
-
Add a controller system attribute to the <aura:component> tag to wire the component to the
controller. For example:
1swfobject.registerObject("clippy.codeblock-0", "9"); 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17<aura:component controller="SimpleServerSideController" >