Skip to content

Instantly share code, notes, and snippets.

@putzflorian
Last active June 8, 2016 11:24
Show Gist options
  • Select an option

  • Save putzflorian/41973c358c5b207b24ee50fb3c447c17 to your computer and use it in GitHub Desktop.

Select an option

Save putzflorian/41973c358c5b207b24ee50fb3c447c17 to your computer and use it in GitHub Desktop.
view instanz im helper
<?php
$viewRenderer = \Zend_Controller_Action_HelperBroker::getExistingHelper("viewRenderer");
$view = $viewRenderer->view;
$link = $view->url(array(
"language" => $language,
"name" => $obj->getTitle(),
"id" => $obj->getAlpsteinid()
),
"flexviewdetail", true
);
$params = ["my" => "param", "foo" => "bä----xxr"];
$params = \Website\View\Helper\PrettyUrl::prepareParams($params);
$url = \Pimcore\Model\Staticroute::getByName("my-route")->assemble($params/*, true, false*/);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment