Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »


mixed permalink(string $route, int $id, string $title)


Creates a unique permalink. This is handy when you want to create an App that requires viewing an item, like a blog or video. This function follows our default permalink rules and structure.


$route

URL path for your link.

$id

Unique ID number.

$title

Title of the item


echo permalink('/foo', 1, 'Hello World!');

// Will create a link (e.g. http://localhost/foo/1/hello-world/)
  • No labels