function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
RAHUL SINGH 1210RAHUL SINGH 1210 

Visual-force Controllers

How many ways i can call my Controller in visualforce ?  
Harish RamachandruniHarish Ramachandruni
<apex:page controlller= "yourcontroller"  extentioncontroller = "yourcontroller1">

</apex:page>


Regards,
Harish.R
Anuj Joshi 16Anuj Joshi 16
Hi,

There are three types of controllers. 
1) Standard Controller: It is a type of controller where it uses features given  by salesforce.
2) Custom Controller:  It is a controller or code which is written by the developer.
3) Controller Extension: It uses some standard controller functionalities but the apex code which we have written extends some of its functionalities.

 
Prashant Pandey07Prashant Pandey07
<apex:page standardcontroller="Account" extensions=''yourextension">
<!-- body of code -->
</page>

or 

<apex:page controller=YourController" action="{!yourMethod}">
<!-- body of code -->
</page>

Note: You can also call a controller form your javascript if there is any javascript code written in your visualforce 

Please mark this is as a best answer.