Actions

API17

Difference between revisions of "JController::getModel"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
(Layout updates)
Line 12: Line 12:
 
===Synopsis===
 
===Synopsis===
 
<source lang="php">
 
<source lang="php">
public JController->getModel ($name= '', $prefix= '', $config=array())
+
public JController::getModel ($name= '', $prefix= '', $config=array())
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 40: Line 40:
 
object The model.
 
object The model.
 
===Defined in===
 
===Defined in===
libraries/joomla/application/component/controller.php
+
libraries/joomla/application/component/controller.php (line 681)
 +
* see source code in [[jplatform:application/component/controller.php#cl-681|BitBucket]]
 
===Referenced by===
 
===Referenced by===
 
===See also===
 
===See also===

Revision as of 19:07, 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.

Joomla 11.1 JController::getModel

Description

Method to get a model object, loading it if required.

Description:JController::getModel [Edit Descripton]

Since

Joomla 11.1

Synopsis

public JController::getModel ($name= '', $prefix= '', $config=array())
Parameter Type Default Description
$name string The model name. Optional.
$prefix string The class prefix. Optional.
$config array array() Configuration array for model. Optional.

Returns

object The model.

Defined in

libraries/joomla/application/component/controller.php (line 681)

Referenced by

See also

[Edit See Also]

SeeAlso:JController::getModel

Examples

<CodeExamplesForm />