Actions

API17

Difference between revisions of "JControllerForm"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
(Layout updates)
Line 6: Line 6:
 
===Defined in===
 
===Defined in===
 
libraries/joomla/application/component/controllerform.php
 
libraries/joomla/application/component/controllerform.php
 +
* see source code in [[jplatform:application/component/controllerform.php|BitBucket]]
 
===Subpackage===
 
===Subpackage===
 
[[Subpackage Application/11.1|Application]]
 
[[Subpackage Application/11.1|Application]]
Line 57: Line 58:
 
<source lang="php">jimport( 'joomla.application.component.controllerform' );</source>
 
<source lang="php">jimport( 'joomla.application.component.controllerform' );</source>
 
===See also===
 
===See also===
 +
* JControllerForm source code in [[jplatform:application/component/controllerform.php|BitBucket]]
 
* [[JControllerForm|Other versions of this class]]
 
* [[JControllerForm|Other versions of this class]]
 
{{SeeAlso:JControllerForm}}
 
{{SeeAlso:JControllerForm}}

Revision as of 17:51, 23 April 2011

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

[Edit Descripton] Description:JControllerForm

Defined in

libraries/joomla/application/component/controllerform.php

Subpackage

Application

Extends

JController

Extended by

Methods

Method name Description
__construct Constructor.
add Method to add a new record.
cancel Method to cancel an edit.
edit Method to edit an existing record.
getModel Method to get a model object, loading it if required.
save Method to save a record.
allowAdd Method to check if you can add a new record.
allowEdit Method to check if you can add a new record.
allowSave Method to check if you can save a new or existing record.
getRedirectToItemAppend Gets the URL arguments to append to an item redirect.
getRedirectToListAppend Gets the URL arguments to append to a list redirect.
postSaveHook Function that allows child controller access to model data after the data has been saved.

Importing

jimport( 'joomla.application.component.controllerform' );

See also

SeeAlso:JControllerForm [Edit See Also]

Examples

<CodeExamplesForm />