+ 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.