JController::addModelPath: Difference between revisions
From Joomla! Documentation
m →See also: moving preparation |
m clean up |
||
| Line 4: | Line 4: | ||
Adds to the stack of model paths in LIFO order. | Adds to the stack of model paths in LIFO order. | ||
{{Description:JController::addModelPath}} | {{subst:Description:JController::addModelPath}} | ||
<source lang="php"> | <source lang="php"> | ||
public static function addModelPath ( | public static function addModelPath ( | ||
| Line 39: | Line 37: | ||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Application|Application]] | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Application|Application]] | ||
* [[API17:JController::addModelPath|Other versions of JController::addModelPath]] | * [[API17:JController::addModelPath|Other versions of JController::addModelPath]] | ||
{{SeeAlso:JController::addModelPath}} | {{subst:SeeAlso:JController::addModelPath}} | ||
===User contributed notes=== | ===User contributed notes=== | ||
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
Revision as of 14:56, 24 March 2017
JController::addModelPath
Description
Adds to the stack of model paths in LIFO order.
{{subst:Description:JController::addModelPath}}
public static function addModelPath (
$path
$prefix=''
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $path | mixed | The directory (string), or list of directories (array) to add. | |
| $prefix | string | A prefix for models |
- Returns void
- Defined on line 144 of libraries/joomla/application/component/controller.php
See also
JController::addModelPath source code on BitBucket
Class JController
Subpackage Application- Other versions of JController::addModelPath
{{subst:SeeAlso:JController::addModelPath}}
User contributed notes
<CodeExamplesForm />