Actions

API17

Difference between revisions of "JController::createModel"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
(Layout updates)
Line 12: Line 12:
 
===Synopsis===
 
===Synopsis===
 
<source lang="php">
 
<source lang="php">
protected JController->createModel ($name, $prefix= '', $config=array())
+
protected JController::createModel ($name, $prefix= '', $config=array())
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 40: Line 40:
 
mixed Model object on success; otherwise null failure.
 
mixed Model object on success; otherwise null failure.
 
===Defined in===
 
===Defined in===
libraries/joomla/application/component/controller.php
+
libraries/joomla/application/component/controller.php (line 504)
 +
* see source code in [[jplatform:application/component/controller.php#cl-504|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::createModel

Description

Method to load and return a model object.

Description:JController::createModel [Edit Descripton]

Since

Joomla 11.1 Replaces _createModel.

Synopsis

protected JController::createModel ($name, $prefix= '', $config=array())
Parameter Type Default Description
$name string The name of the model.
$prefix string Optional model prefix.
$config array array() Configuration array for the model. Optional.

Returns

mixed Model object on success; otherwise null failure.

Defined in

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

Referenced by

See also

[Edit See Also]

SeeAlso:JController::createModel

Examples

<CodeExamplesForm />