Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The easiest way to build an URI to an arbitray arbitrary article is as follows:

Code Block
languagephp
linenumberstrue
$param['idart'] = $idart;
$param['lang'] = $lang;
$url = cUri::getInstance()->build($param);

...

All of them prefixed with protocol and client host (e. g. http://host/) will also be identified as a internal UrlURL.

Other UrlsURLs, even internal Urls internal URLs like /unknown/path/to/some/page.html will not be identified as internal url internal URL event if they are real working clean URLs.

...

BuilderURI example 
cUriBuilderFrontcontentfront_content.php?idart=$idart&lang=$lang 
cUriBuilderCustomindex-a-1.html 
cUriBuilderCustomPathcategory-alias/index-a-1.html 
cUriBuilderMRcategory-alias/article-alias.htmlrequires AMR
Note
titleTODO

Verify URI examples!

HTTP base path

All builder classes hav a member to hold the URL that is used as base for an absolute path (see above), e.g. 'http://contenido.org/'. The abstract class cUriBuilder offers a getter and a setter for this member.

...