Newer Version Available
Creating Your First Custom Controller
Up through this point, all of the examples in this tutorial have used the standard Account
controller to define the underlying logic of each page. Visualforce, however, allows you to
add your own logic and navigation controls to a page by defining a custom controller. The
following topics walk through the basics of creating a custom controller class and defining
class methods that can interact with Visualforce markup: