API17

JController::addModelPath: Difference between revisions

From Joomla! Documentation

Doxiki2 (talk | contribs)
Bulk upload by Doxiki2
 
m preparing for archive only
 
(6 intermediate revisions by 2 users not shown)
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}}
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JController::addModelPath|Edit Descripton]]<nowiki>]</nowiki>
</span>
===Synopsis===
<source lang="php">
<source lang="php">
public static JController::addModelPath ($path, $prefix='')
public static function addModelPath (
        $path
        $prefix=''
)
</source>
</source>
{| class="wikitable"
{| class="wikitable"
Line 30: Line 30:
|-
|-
|}
|}
===Returns===
* '''Returns''' void
void
* '''Defined''' on line 144 of libraries/joomla/application/component/controller.php
===Defined in===
libraries/joomla/application/component/controller.php
===Referenced by===
===See also===
===See also===
<span class="editsection" style="font-size:76%;">
* {{JVer|11.1}} '''JController::addModelPath source code''' on [[jplatform:application/component/controller.php#cl-136|BitBucket]]
<nowiki>[</nowiki>[[SeeAlso:JController::addModelPath|Edit See Also]]<nowiki>]</nowiki>
* {{JVer|11.1}} Class [[API17:JController|JController]]
</span>
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Application|Application]]
* [[JController/11.1|JController]]
* [[API17:JController::addModelPath|Other versions of JController::addModelPath]]
* [[JController::addModelPath|Other versions of this method]]
 
{{SeeAlso:JController::addModelPath}}
 
===Examples===
===User contributed notes===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
noresultsheader=\n
noresultsheader=\n
category=JController::addModelPath
category=JController::addModelPath
category=CodeExample
namespace=CodeExample
category=MethodExample
category=MethodExample
include=*
include=*
namespace=CodeExample
format= ,,,
format= ,,,
</dpl>
</dpl>
<noinclude>[[Category:JController]][[Category:JController::addModelPath]]</noinclude>
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 02:30, 25 March 2017

Joomla 11.1 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


User contributed notes

Code Examples