JController::addModelPath: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 4: | Line 4: | ||
Adds to the stack of model paths in LIFO order. | Adds to the stack of model paths in LIFO order. | ||
<source lang="php"> | <source lang="php"> | ||
| Line 37: | 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]] | ||
===User contributed notes=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JController::addModelPath | category=JController::addModelPath | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 02:30, 25 March 2017
JController::addModelPath
Description
Adds to the stack of model paths in LIFO order.
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
User contributed notes
Code Examples