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 20:07, 23 April 2011

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Joomla 11.1 JController::getModel[edit]

Description[edit]

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

Template:Description:JController::getModel [Edit Descripton]

Since[edit]

Joomla 11.1

Synopsis[edit]

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[edit]

object The model.

Defined in[edit]

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

Referenced by[edit]

See also[edit]

[Edit See Also]

Template:SeeAlso:JController::getModel

Examples[edit]

<CodeExamplesForm />