# \#zend-view

**URL:** https://discourse.laminas.dev/tag/zend-view/9.md

[Latest](https://discourse.laminas.dev/latest.md) · [Categories](https://discourse.laminas.dev/categories.md) · [Tags](https://discourse.laminas.dev/tags.md)

---

## [Wrong charset from view plugins ZF3](https://discourse.laminas.dev/t/wrong-charset-from-view-plugins-zf3/1024)

<div class="topic-metadata">

**Author:** [@iLja](https://discourse.laminas.dev/u/iLja)\
**Replies:** 9\
**Last updated:** [July 30, 2023, 8:47am UTC](https://discourse.laminas.dev/t/wrong-charset-from-view-plugins-zf3/1024 "2023-07-30T08:47:14Z")

</div>

echo $this-\>headTitle($meta\_data-\>title); $this-\>headMeta() -\>appendName('description', $meta\_data-\>description); $this-\>headMeta()-\>setCharset('UTF-8') -\>appendName('viewport', 'width=device-width, ini…

---

## [Laminas-View Template system advice](https://discourse.laminas.dev/t/laminas-view-template-system-advice/2750)

<div class="topic-metadata">

**Author:** [@Tyrsson](https://discourse.laminas.dev/u/Tyrsson)\
**Replies:** 2\
**Last updated:** [February 2, 2022, 3:34am UTC](https://discourse.laminas.dev/t/laminas-view-template-system-advice/2750 "2022-02-02T03:34:26Z")

</div>

Im not so much looking for code examples from this post, but more just general information and some advice on the best to accomplish my goals the “Laminas” way. My goal is to alter the view loading for the following purp…

---

## [No base path provided](https://discourse.laminas.dev/t/no-base-path-provided/1884)

<div class="topic-metadata">

**Author:** [@vrkansagara](https://discourse.laminas.dev/u/vrkansagara)\
**Replies:** 1\
**Last updated:** [October 13, 2020, 11:44am UTC](https://discourse.laminas.dev/t/no-base-path-provided/1884 "2020-10-13T11:44:09Z")

</div>

I am running some console command to generate static page using layout file where layout is using basePath is used as following way \<?= $this-\>inlineScript() -\>prependFile($this-\>basePath('/dist/js/vendor.js'),'text/jav…

---

## [Enterprise Application Framework based on Laminas - Questions regarding opensource](https://discourse.laminas.dev/t/enterprise-application-framework-based-on-laminas-questions-regarding-opensource/1315)

<div class="topic-metadata">

**Author:** [@Praesidiarius](https://discourse.laminas.dev/u/Praesidiarius)\
**Replies:** 16\
**Last updated:** [October 12, 2020, 3:03pm UTC](https://discourse.laminas.dev/t/enterprise-application-framework-based-on-laminas-questions-regarding-opensource/1315 "2020-10-12T15:03:04Z")

</div>

Hi. I am a developer of a Software Framework called “onePlace” - since 2009 its based on Zend Framework, started with Version 1. My 10th Version (PLC X) has now reached end of beta (0.9.8) based on latest Zend Framework…

---

## [Laminas MVC: Capture Content Style and Script](https://discourse.laminas.dev/t/laminas-mvc-capture-content-style-and-script/1463)

<div class="topic-metadata">

**Author:** [@JiNexus](https://discourse.laminas.dev/u/JiNexus)\
**Replies:** 6\
**Last updated:** [March 22, 2020, 5:08pm UTC](https://discourse.laminas.dev/t/laminas-mvc-capture-content-style-and-script/1463 "2020-03-22T17:08:10Z")

</div>

Hello from the other side! Have you ever tried to capture style and script in per content basis and render it in to your main layout? Now, I’d like to share to you how I did it in Laminas MVC (formerly known as Zend Fram…

---

## [Create data-driven WebApps in record speeds with onePlace - a Laminas based PHP Application Framework](https://discourse.laminas.dev/t/create-data-driven-webapps-in-record-speeds-with-oneplace-a-laminas-based-php-application-framework/1332)

<div class="topic-metadata">

**Author:** [@Praesidiarius](https://discourse.laminas.dev/u/Praesidiarius)\
**Replies:** 0\
**Last updated:** [January 24, 2020, 5:37pm UTC](https://discourse.laminas.dev/t/create-data-driven-webapps-in-record-speeds-with-oneplace-a-laminas-based-php-application-framework/1332 "2020-01-24T17:37:20Z")

</div>

Greetings folks, since 2008 i am developing a software framework called “onePlace”. It started on Zend Framework V1 and the beta version of my 10th release PLC X based on the latest Zend Framework 2/3 Modules following …

---

## [How to use inline script head tag in Zend\\View component without full MVC stack](https://discourse.laminas.dev/t/how-to-use-inline-script-head-tag-in-zend-view-component-without-full-mvc-stack/1246)

<div class="topic-metadata">

**Author:** [@eguvenc](https://discourse.laminas.dev/u/eguvenc)\
**Replies:** 4\
**Last updated:** [November 12, 2019, 4:38pm UTC](https://discourse.laminas.dev/t/how-to-use-inline-script-head-tag-in-zend-view-component-without-full-mvc-stack/1246 "2019-11-12T16:38:57Z")

</div>

$this-\>inlineScript() is not work in my layout file. Here is the full code. index.php error\_reporting(E\_ALL); ini\_set('display\_erros', 1); include 'vendor/autoload.php'; use Zend\\View\\Model\\ViewModel; use Zend\\View\\…

---

## [How do I send variables to an error layout in ZF3?](https://discourse.laminas.dev/t/how-do-i-send-variables-to-an-error-layout-in-zf3/1035)

<div class="topic-metadata">

**Author:** [@iLja](https://discourse.laminas.dev/u/iLja)\
**Replies:** 3\
**Last updated:** [May 17, 2019, 4:56pm UTC](https://discourse.laminas.dev/t/how-do-i-send-variables-to-an-error-layout-in-zf3/1035 "2019-05-17T16:56:00Z")

</div>

Hello! What is the right way to send variables to the layout templete for it be approachable in error pages? I have AppFrontController above all my frontend controllers. It have code (code is near) in onDispatch() meth…

---

## [View Helper vs Partial](https://discourse.laminas.dev/t/view-helper-vs-partial/916)

<div class="topic-metadata">

**Author:** [@COMCDUARTE](https://discourse.laminas.dev/u/COMCDUARTE)\
**Replies:** 2\
**Last updated:** [January 29, 2019, 3:33pm UTC](https://discourse.laminas.dev/t/view-helper-vs-partial/916 "2019-01-29T15:33:29Z")

</div>

I have a form I’m creating, to enter data into a table that includes references to two other tables. Table A is for widgets, includes fields for name, description, and price. Table B is for groups, and is a relational …

---

## [Problem in using the Identity Helper](https://discourse.laminas.dev/t/problem-in-using-the-identity-helper/875)

<div class="topic-metadata">

**Author:** [@jobsfan](https://discourse.laminas.dev/u/jobsfan)\
**Replies:** 12\
**Last updated:** [January 3, 2019, 9:48am UTC](https://discourse.laminas.dev/t/problem-in-using-the-identity-helper/875 "2019-01-03T09:48:49Z")

</div>

Hello, recently I got a error of Call to a member function getUsername() on null in module.config.php 'service\_manager' =\> \[ 'aliases' =\> \[ 'my\_auth\_service' =\> AuthenticationService::class, …

---

## [Reassign template in custom directory path](https://discourse.laminas.dev/t/reassign-template-in-custom-directory-path/786)

<div class="topic-metadata">

**Author:** [@Jonathan\_Kushner](https://discourse.laminas.dev/u/Jonathan_Kushner)\
**Replies:** 0\
**Last updated:** [October 14, 2018, 9:15pm UTC](https://discourse.laminas.dev/t/reassign-template-in-custom-directory-path/786 "2018-10-14T21:15:15Z")

</div>

Hey Guys! So Ive tried stackoverflow and the slack channel, and am unable to get a response for my issue. Its fairly simple, and if anyone can help id greatly apprecaite it. Thanks.

---

## [How to include module's .phtml from layout?](https://discourse.laminas.dev/t/how-to-include-modules-phtml-from-layout/704)

<div class="topic-metadata">

**Author:** [@dronord](https://discourse.laminas.dev/u/dronord)\
**Replies:** 15\
**Last updated:** [August 27, 2018, 9:56am UTC](https://discourse.laminas.dev/t/how-to-include-modules-phtml-from-layout/704 "2018-08-27T09:56:02Z")

</div>

Hello. Idea: \<?php // layout.phtml ... \<body\> \<?= $this-\>partial('sidebar') ?\> \<?= $this-\>content ?\> \</body\> ?\> Problem: partial() does not work. How to include static .phtml from current module directory? Zen…

---

## [\[Solved\] ViewJsonStrategy is registered and set to default, yet some controllers default to a phtml view](https://discourse.laminas.dev/t/solved-viewjsonstrategy-is-registered-and-set-to-default-yet-some-controllers-default-to-a-phtml-view/685)

<div class="topic-metadata">

**Author:** [@epocsquadron](https://discourse.laminas.dev/u/epocsquadron)\
**Replies:** 1\
**Last updated:** [August 13, 2018, 3:23pm UTC](https://discourse.laminas.dev/t/solved-viewjsonstrategy-is-registered-and-set-to-default-yet-some-controllers-default-to-a-phtml-view/685 "2018-08-13T15:23:55Z")

</div>

I have a module which includes mvc controllers that respond with JSON on certain defined endpoints. I have a number of controllers, at least one of which works correctly. At least one other, however, stubbornly returns o…

---

## [Plates and zend-view helpers](https://discourse.laminas.dev/t/plates-and-zend-view-helpers/357)

<div class="topic-metadata">

**Author:** [@lowtower](https://discourse.laminas.dev/u/lowtower)\
**Replies:** 15\
**Last updated:** [February 28, 2018, 4:14pm UTC](https://discourse.laminas.dev/t/plates-and-zend-view-helpers/357 "2018-02-28T16:14:28Z")

</div>

Hello, I want to use plates as template engine, but would like to use zend-form view helpers for rendering the form, maybe zend-navigation view helpers as well. Is it possible to integrate zend-view-helpers (e.g. for r…

---

## [How to add pass route param to url view helper?](https://discourse.laminas.dev/t/how-to-add-pass-route-param-to-url-view-helper/457)

<div class="topic-metadata">

**Author:** [@djmentos](https://discourse.laminas.dev/u/djmentos)\
**Replies:** 0\
**Last updated:** [February 1, 2018, 11:02am UTC](https://discourse.laminas.dev/t/how-to-add-pass-route-param-to-url-view-helper/457 "2018-02-01T11:02:32Z")

</div>

I’ve created routing based on Hostname but reached trouble with URL generation when using \\Zend\\View\\Helper\\Url. When I run: $this-\>url('main/faq') helper creates URL without lang param in subdomain. Ok, I can use: $…

---

## [Zend-db join problem in view script](https://discourse.laminas.dev/t/zend-db-join-problem-in-view-script/332)

<div class="topic-metadata">

**Author:** [@erfan](https://discourse.laminas.dev/u/erfan)\
**Replies:** 4\
**Last updated:** [October 27, 2017, 8:33am UTC](https://discourse.laminas.dev/t/zend-db-join-problem-in-view-script/332 "2017-10-27T08:33:30Z")

</div>

hi there im a newbie somehow to zend framework and i want to know more about its functionality. to do so i would like to know how is it possible to join two tables and get the values returned in the view script. beside…

---

## [How to get controller name in layout in zf3](https://discourse.laminas.dev/t/how-to-get-controller-name-in-layout-in-zf3/237)

<div class="topic-metadata">

**Author:** [@ajazsiddiqui](https://discourse.laminas.dev/u/ajazsiddiqui)\
**Replies:** 3\
**Last updated:** [October 13, 2017, 1:59am UTC](https://discourse.laminas.dev/t/how-to-get-controller-name-in-layout-in-zf3/237 "2017-10-13T01:59:31Z")

</div>

Please let me know how to get current controller and action name in zend framework 3 in best way

---

## [TemplatePathStack resolver loop](https://discourse.laminas.dev/t/templatepathstack-resolver-loop/224)

<div class="topic-metadata">

**Author:** [@Kudo](https://discourse.laminas.dev/u/Kudo)\
**Replies:** 2\
**Last updated:** [July 25, 2017, 9:25pm UTC](https://discourse.laminas.dev/t/templatepathstack-resolver-loop/224 "2017-07-25T21:25:45Z")

</div>

Hey folks, I was using the vendor/bin/templatemap\_generator.php to generate some of the module template mapping. But was wondering why we did it. So the question that popped my mind was: how is Zend Framework finding t…

---

## [How to add tabindex for each radio button option?](https://discourse.laminas.dev/t/how-to-add-tabindex-for-each-radio-button-option/214)

<div class="topic-metadata">

**Author:** [@Rajesh\_Rathor](https://discourse.laminas.dev/u/Rajesh_Rathor)\
**Replies:** 1\
**Last updated:** [July 25, 2017, 8:26pm UTC](https://discourse.laminas.dev/t/how-to-add-tabindex-for-each-radio-button-option/214 "2017-07-25T20:26:31Z")

</div>

Hi All, I added a radio button from form and when I give the tabbing to that it giving same to all 3 radio button, May be because I am giving for the whole, So I just wanted to know that is there a way to give separate…

---

## [How to get config in a Service](https://discourse.laminas.dev/t/how-to-get-config-in-a-service/196)

<div class="topic-metadata">

**Author:** [@Blackpearl](https://discourse.laminas.dev/u/Blackpearl)\
**Replies:** 5\
**Last updated:** [July 13, 2017, 9:42pm UTC](https://discourse.laminas.dev/t/how-to-get-config-in-a-service/196 "2017-07-13T21:42:27Z")

</div>

Hi all, I am not sure this is the right question or the right way of doing it. I have a service called emailService, and i want to get the config from global.php. how to achieve that. NOTE: i used factory to inject th…

---

## [How to set radio button attribute to checked if value or id matched?](https://discourse.laminas.dev/t/how-to-set-radio-button-attribute-to-checked-if-value-or-id-matched/198)

<div class="topic-metadata">

**Author:** [@Rajesh\_Rathor](https://discourse.laminas.dev/u/Rajesh_Rathor)\
**Replies:** 1\
**Last updated:** [July 13, 2017, 12:54pm UTC](https://discourse.laminas.dev/t/how-to-set-radio-button-attribute-to-checked-if-value-or-id-matched/198 "2017-07-13T12:54:31Z")

</div>

Hi All, I have one question I have an element Male Female Other I want to get an element using ID attribute? is there any function in ZF2 like $form-\>getElement('gender')? I have tried few functions like getId e…

---

## [How to override default PhpRenderer in ZF3 MVC](https://discourse.laminas.dev/t/how-to-override-default-phprenderer-in-zf3-mvc/191)

<div class="topic-metadata">

**Author:** [@dendy](https://discourse.laminas.dev/u/dendy)\
**Replies:** 8\
**Last updated:** [July 11, 2017, 6:45am UTC](https://discourse.laminas.dev/t/how-to-override-default-phprenderer-in-zf3-mvc/191 "2017-07-11T06:45:12Z")

</div>

Hello, plase how i can override PhpRenderer in ZF3 ? I need it to add some special dynamic logic .. What i did currently, but it doesn't work at all (looks Zend\\Mvc ignores this setting) 1/ i added to config/applic…

---

## [ZF2 routing in links not working correctly](https://discourse.laminas.dev/t/zf2-routing-in-links-not-working-correctly/165)

<div class="topic-metadata">

**Author:** [@Kieran\_McCarthy](https://discourse.laminas.dev/u/Kieran_McCarthy)\
**Replies:** 0\
**Last updated:** [June 21, 2017, 8:57am UTC](https://discourse.laminas.dev/t/zf2-routing-in-links-not-working-correctly/165 "2017-06-21T08:57:37Z")

</div>

I'm trying to implement the best standards for an application I am working on for a client. There are multiple links on the page which make AJAX calls. These links are hard coded like href="graph/page-name". These don…
