diff options
Diffstat (limited to 'app/Helper/Url.php')
-rw-r--r-- | app/Helper/Url.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/Helper/Url.php b/app/Helper/Url.php index 964e0762..22e9035e 100644 --- a/app/Helper/Url.php +++ b/app/Helper/Url.php @@ -17,6 +17,19 @@ class Url extends \Core\Base private $directory = ''; /** + * Helper to generate a link to the documentation + * + * @access public + * @param string $label + * @param string $file + * @return string + */ + public function doc($label, $file) + { + return $this->link($label, 'doc', 'show', array('file' => $file), false, '', '', true); + } + + /** * HTML Link tag * * @access public |