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
rye_millerrye_miller 

Creating a Controller

How do I create a controller, usually it is to the right of the Page Editor select button when developing but it no longer exists, where do I go to create the controller?

Thanks!! I am new at developing so I may have more questions, is there anyway some one could send me there email address and maybe we can work out something for some help? It would be much appreciated!!

Rye
Sam.arjSam.arj
Hi Rye,

go ahead and the Controller attribute to your page tag as shown below:

Code:
Before:

<apex:page>
....
</apex:page>


After:
<apex:page controller="myControllerName">
....
</apex:page>

 
Then click on "Save" button. The development environment will confirm that you want to create a new Controller and will create the controller for you.

Cheers,

boihueboihue
Hi,
If you are using the Eclipse, right-click on the unpackaged of your project then select New and select Apex class for creating the Apex Controller. If you want to create from Salesforce then select Setup > App Setup > Develop > Apex Classes and click on the New button. You have to create the Apex Controller before creating of any Visualforce Page using this Controller.
Regards,
Boi Hue