1 <?php
2 /**
3 * Uri.php
4 *
5 * @author Elvyrra SAS
6 * @license http://rem.mit-license.org/ MIT
7 */
8
9 namespace Hawk\View\Plugins;
10
11 /**
12 * This class is used to display an URI in the view
13 *
14 * @package View\Plugins
15 */
16 class Uri extends \Hawk\ViewPlugin{
17 /**
18 * The URI action or route name
19 */
20 public $action;
21
22 /**
23 * Display the URI
24 *
25 * @return string The found URI
26 */
27 public function display(){
28 unset($this->params['action']);
29 return \Hawk\App::router()->getUri($this->action, $this->params);
30 }
31 }
32