From 6c711f696f73bc59813f6834ec241aef3b626cbd Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 29 Aug 2015 20:00:53 -0400 Subject: Include documentation in the application --- app/Helper/Url.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'app/Helper') 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 @@ -16,6 +16,19 @@ class Url extends \Core\Base private $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 * -- cgit v1.2.3