JControllerForm: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 1: | Line 1: | ||
===Defined in=== | ===Defined in=== | ||
libraries/joomla/application/component/controllerform.php | libraries/joomla/application/component/controllerform.php | ||
| Line 34: | Line 32: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JControllerForm | category=JControllerForm | ||
namespace=CodeExample | |||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
Latest revision as of 00:24, 25 March 2017
Defined in
libraries/joomla/application/component/controllerform.php
Methods
| Method name | Description |
|---|---|
| __construct | Constructor. |
| getModel | Method to get a model object, loading it if required. |
| display | This controller does not have a display method. Redirect back to the list view of the component. |
| add | Method to add a new record. |
| edit | Method to edit an existing record. |
| cancel | Method to cancel an edit |
| save | Method to save a record. |
Importing
jimport( 'joomla.application.component.controllerform' );
Examples
Code Examples