API17

JRoute: Difference between revisions

From Joomla! Documentation

Doxiki2 (talk | contribs)
Bulk upload by Doxiki2
 
m preparing for archive only
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
<span class="editsection" style="font-size:76%;">
=={{JVer|11.1}} JRoute==
<nowiki>[</nowiki>[[Description:JRoute|Edit Descripton]]<nowiki>]</nowiki>
===Description===
</span>
 
{{Description:JRoute}}
 
===Defined in===
libraries/joomla/methods.php
===Subpackage===
===Extends===
===Extended by===
===Methods===
===Methods===
{| class="wikitable sortable"
{| class="wikitable sortable"
|-
|-
!Visibility
!Method name
!Method name
!Description
!Description
|-
|-
|[[JRoute::_/11.1|_]]
|public static
|[[API17:JRoute::_|_]]
|Translates an internal Joomla URL to a humanly readible URL.  
|Translates an internal Joomla URL to a humanly readible URL.  
|-
|-
|}
|}
* '''Defined in''' libraries/joomla/methods.php
===Importing===
===Importing===
<source lang="php">jimport( 'joomla.methods' );</source>
<source lang="php">jimport( 'joomla.methods' );</source>
===See also===
===See also===
* [[JRoute|Other versions of this class]]
* {{JVer|11.1}} '''JRoute source code''' on [[jplatform:methods.php|BitBucket]]
{{SeeAlso:JRoute}}
* [[API17:JRoute|Other versions of JRoute]]
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JRoute|Edit See Also]]<nowiki>]</nowiki>
 
</span>
===User contributed notes===
===Examples===
=== Code Examples ===
<CodeExamplesForm />
<dpl>
<dpl>
noresultsheader=\n
noresultsheader=\n
category=JRoute
category=JRoute
category=CodeExample
namespace=CodeExample
category=ClassExample
category=ClassExample
include=*
include=*
namespace=CodeExample
format= ,,,
format= ,,,
</dpl>
</dpl>
<noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JRoute]]</noinclude>
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>
 
Suggest the following as a more useful entry:
This is largely taken from the API pages.
 
Translates an internal Joomla URL to a humanly readible URL.
 
    return: translated humanly readible URL.
    since: 11.1
    access: public
 
The _ (string $url, [boolean $xhtml = true], [integer $ssl = null])
 
    string $url: Absolute or Relative URI to Joomla resource.
    boolean $xhtml: Replace & with & for XML compilance.
    integer $ssl: Secure state for the resolved URI. 1: Make URI secure using global secure site URI. 0: Leave URI in the same secure state as it was passed to the function. -1: Make URI unsecure using the global unsecure site URI.
 
Example - create a human-readable link to the login page without replacing ampersands (&):
 
JRoute::_('index.php?option=com_users&view=login', false);

Latest revision as of 03:36, 25 March 2017

Joomla 11.1 JRoute

Description

Methods

Visibility Method name Description
public static _ Translates an internal Joomla URL to a humanly readible URL.
  • Defined in libraries/joomla/methods.php

Importing

jimport( 'joomla.methods' );

See also


User contributed notes

Code Examples


Suggest the following as a more useful entry: This is largely taken from the API pages.

Translates an internal Joomla URL to a humanly readible URL.

   return: translated humanly readible URL.
   since: 11.1
   access: public

The _ (string $url, [boolean $xhtml = true], [integer $ssl = null])

   string $url: Absolute or Relative URI to Joomla resource.
   boolean $xhtml: Replace & with & for XML compilance.
   integer $ssl: Secure state for the resolved URI. 1: Make URI secure using global secure site URI. 0: Leave URI in the same secure state as it was passed to the function. -1: Make URI unsecure using the global unsecure site URI.

Example - create a human-readable link to the login page without replacing ampersands (&):

JRoute::_('index.php?option=com_users&view=login', false);