rendered paste body<?php
require_once 'Imagis/View/Helper/UrlGen.php';
class Imagis_View_Helper_LinkSimple
{
public $view;
public function __construct()
{
$this->registry = Zend_Registry::getInstance();
$this->pages = $this->registry->pages;
$this->config = $this->registry->config;
}
public function setView(Zend_View_Interface $view)
{
$this->view = $view;
}
public function linkSimple($id = NULL, $menu = NULL, $seo = NULL, $language = NULL, $v1 = NULL, $v2 = NULL, $route = NULL)
{
if($id == NULL)
$id = $this->config->site->homepage_id;
if($menu == NULL)
$menu = $this->pages->GetSubtag($id, "MENU");
$url = $this->view->urlGen($id, $seo, $language, $v1, $v2, $route);
return '<a href="'.$url.'">'.$menu.'</a>';
}
}