JControllerForm: Difference between revisions
From Joomla! Documentation
New page: <span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JControllerForm}}
===Defi... |
m preparing for archive only |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
===Defined in=== | ===Defined in=== | ||
libraries/joomla/application/component/controllerform.php | libraries/joomla/application/component/controllerform.php | ||
| Line 33: | Line 28: | ||
|Method to save a record. | |Method to save a record. | ||
|} | |} | ||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.application.component.controllerform' );</source> | <source lang="php">jimport( 'joomla.application.component.controllerform' );</source> | ||
===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 01:25, 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