Last active
June 8, 2016 11:24
-
-
Save putzflorian/41973c358c5b207b24ee50fb3c447c17 to your computer and use it in GitHub Desktop.
view instanz im helper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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