# \#laminas-mvc

**URL:** https://discourse.laminas.dev/tag/laminas-mvc/49.md

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

---

## [Contenir\\Mail (formerly Laminas\\Mail)](https://discourse.laminas.dev/t/contenir-mail-formerly-laminas-mail/4158)

<div class="topic-metadata">

**Author:** [@simon-mundy](https://discourse.laminas.dev/u/simon-mundy)\
**Replies:** 1\
**Last updated:** [October 21, 2026, 2:41am UTC](https://discourse.laminas.dev/t/contenir-mail-formerly-laminas-mail/4158 "2026-10-21T02:41:31Z")

</div>

Hi everyone. I’d like to announce the pre-release version of Contenir Mail for anyone interested. As Laminas Mail was abandoned, and I actually liked using it, I set about updating it. It keeps the full Git history back…

---

## [Custom 404 and error page](https://discourse.laminas.dev/t/custom-404-and-error-page/3117)

<div class="topic-metadata">

**Author:** [@ebuddy](https://discourse.laminas.dev/u/ebuddy)\
**Replies:** 8\
**Last updated:** [August 29, 2026, 10:48am UTC](https://discourse.laminas.dev/t/custom-404-and-error-page/3117 "2026-08-29T10:48:04Z")

</div>

Hello I would like to know if someone has any code snippet for customizing 404 not found and error pages ?

---

## [Laminas MVC Future](https://discourse.laminas.dev/t/laminas-mvc-future/3929)

<div class="topic-metadata">

**Author:** [@voltan](https://discourse.laminas.dev/u/voltan)\
**Replies:** 22\
**Last updated:** [August 20, 2026, 3:00pm UTC](https://discourse.laminas.dev/t/laminas-mvc-future/3929 "2026-08-20T15:00:34Z")

</div>

I happened to see in the technical-steering-committee repository that Laminas MVC is going to be archived and its development will stop. But I haven’t seen any information about this anywhere else Can you please announ…

---

## [Askerakbar/lens - simple SQL query logger for Laminas MVC](https://discourse.laminas.dev/t/askerakbar-lens-simple-sql-query-logger-for-laminas-mvc/3942)

<div class="topic-metadata">

**Author:** [@Asker\_Akbar](https://discourse.laminas.dev/u/Asker_Akbar)\
**Replies:** 1\
**Last updated:** [July 30, 2025, 9:29am UTC](https://discourse.laminas.dev/t/askerakbar-lens-simple-sql-query-logger-for-laminas-mvc/3942 "2025-07-30T09:29:06Z")

</div>

Just shipped a small side project: Lens it is a simple SQL query logger for Laminas MVC. What it does: Logs every DB query in your app (with timing, bindings, stack trace, etc.) Clean UI at /lens to browse and sea…

---

## [A7-tech/laminas-attribute-controller — use PHP attributes for controllers in Laminas](https://discourse.laminas.dev/t/a7-tech-laminas-attribute-controller-use-php-attributes-for-controllers-in-laminas/3939)

<div class="topic-metadata">

**Author:** [@Aleksandrs\_Sergejevs](https://discourse.laminas.dev/u/Aleksandrs_Sergejevs)\
**Replies:** 4\
**Last updated:** [July 25, 2025, 12:00pm UTC](https://discourse.laminas.dev/t/a7-tech-laminas-attribute-controller-use-php-attributes-for-controllers-in-laminas/3939 "2025-07-25T12:00:14Z")

</div>

Hi everyone! I want to share a small but useful package I’ve made: a7-tech/laminas-attribute-controller This package lets you use PHP 8 attributes (like #\[Route\], #\[Autowire\], etc.) to define your Laminas controllers …

---

## [Custom validator(chain) get multiple form inputs into validator](https://discourse.laminas.dev/t/custom-validator-chain-get-multiple-form-inputs-into-validator/3924)

<div class="topic-metadata">

**Author:** [@Jilco](https://discourse.laminas.dev/u/Jilco)\
**Replies:** 3\
**Last updated:** [June 7, 2025, 4:30pm UTC](https://discourse.laminas.dev/t/custom-validator-chain-get-multiple-form-inputs-into-validator/3924 "2025-06-07T16:30:22Z")

</div>

Hello Laminas Friends, I want to extend my validatorchain with some custum validator(s). Writing the validators is not a problem, but how to get the inputs into the validatorchain? I want to compare 2 month/year inputs…

---

## [Unit Testing File Upload Postprocessing](https://discourse.laminas.dev/t/unit-testing-file-upload-postprocessing/2411)

<div class="topic-metadata">

**Author:** [@makxk](https://discourse.laminas.dev/u/makxk)\
**Replies:** 3\
**Last updated:** [June 5, 2025, 9:17am UTC](https://discourse.laminas.dev/t/unit-testing-file-upload-postprocessing/2411 "2025-06-05T09:17:22Z")

</div>

Hello everyone! I’ve been trying my hands on a somewhat stateless file upload: User uploads a file, the controller processes it and returns a form with pre-filled out fields based on the values from the file. The upload…

---

## [Best practice change navigation on login](https://discourse.laminas.dev/t/best-practice-change-navigation-on-login/3894)

<div class="topic-metadata">

**Author:** [@Jilco](https://discourse.laminas.dev/u/Jilco)\
**Replies:** 4\
**Last updated:** [April 28, 2025, 2:32pm UTC](https://discourse.laminas.dev/t/best-practice-change-navigation-on-login/3894 "2025-04-28T14:32:50Z")

</div>

Hello world, When a user logs in i want to change the navigation bar in the layout. Login has to disappear and the menu for the loged in user has to appear. What is best parctice to do that (because there are a few way…

---

## [Laminas navigation error when rendering](https://discourse.laminas.dev/t/laminas-navigation-error-when-rendering/3875)

<div class="topic-metadata">

**Author:** [@ebuddy](https://discourse.laminas.dev/u/ebuddy)\
**Replies:** 16\
**Last updated:** [March 26, 2025, 9:45pm UTC](https://discourse.laminas.dev/t/laminas-navigation-error-when-rendering/3875 "2025-03-26T21:45:51Z")

</div>

Hello everyone. I’m trying to set up my navigation menu in my project but I get this error : Fatal error: Uncaught Laminas\\Navigation\\Exception\\InvalidArgumentException: Invalid argument: Unable to determine class to in…

---

## [How to develop a publically distributable laminas module and use it at the same time?](https://discourse.laminas.dev/t/how-to-develop-a-publically-distributable-laminas-module-and-use-it-at-the-same-time/3115)

<div class="topic-metadata">

**Author:** [@ALTAMASH80](https://discourse.laminas.dev/u/ALTAMASH80)\
**Replies:** 8\
**Last updated:** [March 26, 2025, 11:52am UTC](https://discourse.laminas.dev/t/how-to-develop-a-publically-distributable-laminas-module-and-use-it-at-the-same-time/3115 "2025-03-26T11:52:17Z")

</div>

How to develop a laminas module and use it at the same time? Thanks!

---

## [Memory usage exceeds limit - with nested fieldsets & doctrine](https://discourse.laminas.dev/t/memory-usage-exceeds-limit-with-nested-fieldsets-doctrine/3857)

<div class="topic-metadata">

**Author:** [@MaSa759](https://discourse.laminas.dev/u/MaSa759)\
**Replies:** 2\
**Last updated:** [February 14, 2025, 11:47am UTC](https://discourse.laminas.dev/t/memory-usage-exceeds-limit-with-nested-fieldsets-doctrine/3857 "2025-02-14T11:47:52Z")

</div>

Hi, I get the error “Memory usage exeeds limit” on validating the form containing nested fieldsets: #0 ...vendor\\laminas\\laminas-cache\\src\\Storage\\Adapter\\AbstractAdapter.php(664): Laminas\\Cache\\Storage\\Adapter\\Memory…

---

## [Module (Laminas\\Cache\\Storage\\Adapter\\FileSystem) could not be initialized](https://discourse.laminas.dev/t/module-laminas-cache-storage-adapter-filesystem-could-not-be-initialized/3833)

<div class="topic-metadata">

**Author:** [@LIMHUB](https://discourse.laminas.dev/u/LIMHUB)\
**Replies:** 5\
**Last updated:** [January 1, 2025, 9:58pm UTC](https://discourse.laminas.dev/t/module-laminas-cache-storage-adapter-filesystem-could-not-be-initialized/3833 "2025-01-01T21:58:41Z")

</div>

The issue seems to be with the cache configuration, as the system is unable to initialize the Filesystem cache adapter. Steps Taken: I have verified that the laminas/laminas-cache package is installed via Composer. …

---

## [When using $this-\>forward()-\>dispatch() the controller information is lost](https://discourse.laminas.dev/t/when-using-this-forward-dispatch-the-controller-information-is-lost/3790)

<div class="topic-metadata">

**Author:** [@vigcraig](https://discourse.laminas.dev/u/vigcraig)\
**Replies:** 6\
**Last updated:** [December 19, 2024, 1:18am UTC](https://discourse.laminas.dev/t/when-using-this-forward-dispatch-the-controller-information-is-lost/3790 "2024-12-19T01:18:29Z")

</div>

Hi, this seems to be an old issue similar to this, but still existing in Laminas MVC: https://github.com/laminas/laminas-mvc/issues/27 and here: https://github.com/zendframework/zendframework/issues/7389 I am using this…

---

## [Implementing redis cache in laminas mvc application](https://discourse.laminas.dev/t/implementing-redis-cache-in-laminas-mvc-application/3782)

<div class="topic-metadata">

**Author:** [@Arif\_Ak](https://discourse.laminas.dev/u/Arif_Ak)\
**Replies:** 3\
**Last updated:** [October 7, 2024, 9:15am UTC](https://discourse.laminas.dev/t/implementing-redis-cache-in-laminas-mvc-application/3782 "2024-10-07T09:15:35Z")

</div>

I have installed php redis in my local system and have added the redis adapter via the composer command: composer require laminas/laminas-cache-storage-adapter-redis I tried following this documentation: Adapters - lami…

---

## [Symfony Doctrine Messenger](https://discourse.laminas.dev/t/symfony-doctrine-messenger/3772)

<div class="topic-metadata">

**Author:** [@royyong](https://discourse.laminas.dev/u/royyong)\
**Replies:** 1\
**Last updated:** [September 24, 2024, 8:54am UTC](https://discourse.laminas.dev/t/symfony-doctrine-messenger/3772 "2024-09-24T08:54:01Z")

</div>

Hi folks. I maintain a Laminas MVC project which has a small number of users but due to significant increase in transactions, the amount of data has also grown and the reports that are being generated are currently taki…

---

## [Laminas authentication using lmcuser package with custom db adaper](https://discourse.laminas.dev/t/laminas-authentication-using-lmcuser-package-with-custom-db-adaper/3752)

<div class="topic-metadata">

**Author:** [@Praveen\_Maurya](https://discourse.laminas.dev/u/Praveen_Maurya)\
**Replies:** 2\
**Last updated:** [August 12, 2024, 2:08pm UTC](https://discourse.laminas.dev/t/laminas-authentication-using-lmcuser-package-with-custom-db-adaper/3752 "2024-08-12T14:08:36Z")

</div>

My Zendframework2 application is working fine in the php 7.4 and i have to update it to support php 8.1 and for that i am migrating zf2 to laminas. It was zfcuser implemented in the ZF2. Currently i am replacing zfcuser …

---

## [Laminas MVC Framework Course Free for Beginners on Udemy](https://discourse.laminas.dev/t/laminas-mvc-framework-course-free-for-beginners-on-udemy/3728)

<div class="topic-metadata">

**Author:** [@Pulecode](https://discourse.laminas.dev/u/Pulecode)\
**Replies:** 2\
**Last updated:** [July 11, 2024, 9:57am UTC](https://discourse.laminas.dev/t/laminas-mvc-framework-course-free-for-beginners-on-udemy/3728 "2024-07-11T09:57:56Z")

</div>

Hello everyone. I have created a course on Udemy that I wish to give away to beginners who wish to learn how to build a website using the Laminas MVC Framework, MySQL and Bootstrap 5. What you will learn is: how to c…

---

## [Encrypt database parameter in config files](https://discourse.laminas.dev/t/encrypt-database-parameter-in-config-files/3726)

<div class="topic-metadata">

**Author:** [@ebuddy](https://discourse.laminas.dev/u/ebuddy)\
**Replies:** 4\
**Last updated:** [July 6, 2024, 7:56pm UTC](https://discourse.laminas.dev/t/encrypt-database-parameter-in-config-files/3726 "2024-07-06T19:56:45Z")

</div>

Hi everyone, I would like to know if someone tried to encrypt the database credentials stored in the config files ? Or How can we make it possible ? Best regards

---

## [Best Practice: Location of Configuration](https://discourse.laminas.dev/t/best-practice-location-of-configuration/3703)

<div class="topic-metadata">

**Author:** [@COMCDUARTE](https://discourse.laminas.dev/u/COMCDUARTE)\
**Replies:** 1\
**Last updated:** [May 25, 2024, 12:00am UTC](https://discourse.laminas.dev/t/best-practice-location-of-configuration/3703 "2024-05-25T00:00:24Z")

</div>

I’m creating a module with some custom HTML Input Form Elements. I thought it best to replicate the structure and format of laminas-form, but I’m finding there are multiple ways to add config to a module. My question i…

---

## [Need pointers in making my menu tree creator module better](https://discourse.laminas.dev/t/need-pointers-in-making-my-menu-tree-creator-module-better/3697)

<div class="topic-metadata">

**Author:** [@ALTAMASH80](https://discourse.laminas.dev/u/ALTAMASH80)\
**Replies:** 8\
**Last updated:** [May 17, 2024, 2:11pm UTC](https://discourse.laminas.dev/t/need-pointers-in-making-my-menu-tree-creator-module-better/3697 "2024-05-17T14:11:24Z")

</div>

Hi, I’ve created a module for Laminas MVC which might help someone to build menus. I just need pointers in making it better. Pointers Which test would be about which test should I write to make it more appealing. How …

---

## [Issue with laminas-test unit testing](https://discourse.laminas.dev/t/issue-with-laminas-test-unit-testing/3681)

<div class="topic-metadata">

**Author:** [@Tharisha\_Perera](https://discourse.laminas.dev/u/Tharisha_Perera)\
**Replies:** 5\
**Last updated:** [May 3, 2024, 7:46pm UTC](https://discourse.laminas.dev/t/issue-with-laminas-test-unit-testing/3681 "2024-05-03T19:46:17Z")

</div>

I’m new to Laminas framework and Unit testing and working with a Laminas framework project and I want to start unit testing in that application. I used laminas-test package and followed their tutorial. when I execute th…

---

## [Application slower after laminas update](https://discourse.laminas.dev/t/application-slower-after-laminas-update/3683)

<div class="topic-metadata">

**Author:** [@modir](https://discourse.laminas.dev/u/modir)\
**Replies:** 5\
**Last updated:** [May 3, 2024, 7:43pm UTC](https://discourse.laminas.dev/t/application-slower-after-laminas-update/3683 "2024-05-03T19:43:21Z")

</div>

I have here an application which was written in one of the first version of Laminas and was running now for a while. I updated now all Laminas components to the newest versions and since then a page load went from 1 seco…

---

## [Unable to resolve service "HttpRouter" to a factory](https://discourse.laminas.dev/t/unable-to-resolve-service-httprouter-to-a-factory/3654)

<div class="topic-metadata">

**Author:** [@Avinash\_Dalvi](https://discourse.laminas.dev/u/Avinash_Dalvi)\
**Replies:** 16\
**Last updated:** [April 1, 2024, 5:31pm UTC](https://discourse.laminas.dev/t/unable-to-resolve-service-httprouter-to-a-factory/3654 "2024-04-01T17:31:19Z")

</div>

Fatal error: Uncaught Laminas\\ServiceManager\\Exception\\ServiceNotFoundException: Unable to resolve service “HttpRouter” to a factory There is two factory is missing. Router and HttpRouter. After adding this line into gl…

---

## [ZF3 Skeleton Module not found](https://discourse.laminas.dev/t/zf3-skeleton-module-not-found/3627)

<div class="topic-metadata">

**Author:** [@wan](https://discourse.laminas.dev/u/wan)\
**Replies:** 4\
**Last updated:** [March 13, 2024, 11:20am UTC](https://discourse.laminas.dev/t/zf3-skeleton-module-not-found/3627 "2024-03-13T11:20:47Z")

</div>

I installed Laminas skeleton application and tried to make the album application work. But I am facing problems when loading a module, i.e. Laminas/Db. The database exists as described for the album app but … My php vers…

---

## [An invalid abstract factory was registered. Expected an instance of or a valid class name resolving to an implementation o](https://discourse.laminas.dev/t/an-invalid-abstract-factory-was-registered-expected-an-instance-of-or-a-valid-class-name-resolving-to-an-implementation-o/3608)

<div class="topic-metadata">

**Author:** [@mahendra](https://discourse.laminas.dev/u/mahendra)\
**Replies:** 1\
**Last updated:** [February 27, 2024, 8:15am UTC](https://discourse.laminas.dev/t/an-invalid-abstract-factory-was-registered-expected-an-instance-of-or-a-valid-class-name-resolving-to-an-implementation-o/3608 "2024-02-27T08:15:22Z")

</div>

Hi, please suggest solution for below error. Fatal error : Uncaught Laminas\\ServiceManager\\Exception\\InvalidArgumentException: An invalid abstract factory was registered. Expected an instance of or a valid class na…

---

## [Try to install laminas-cache in a MVC application](https://discourse.laminas.dev/t/try-to-install-laminas-cache-in-a-mvc-application/3600)

<div class="topic-metadata">

**Author:** [@StriveXNL](https://discourse.laminas.dev/u/StriveXNL)\
**Replies:** 2\
**Last updated:** [February 20, 2024, 11:07am UTC](https://discourse.laminas.dev/t/try-to-install-laminas-cache-in-a-mvc-application/3600 "2024-02-20T11:07:46Z")

</div>

Hi, Using the skeleton MVC application en want to use the caching. I tried to install the cache using composer. Laminas cache is using psr/cache ^1.0, but Laminas MVC requires ^3.0. How can I use the laminas cache in …

---

## [Translate Laminas\\Validator\\ $messageTemplates](https://discourse.laminas.dev/t/translate-laminas-validator-messagetemplates/3422)

<div class="topic-metadata">

**Author:** [@LordSauron](https://discourse.laminas.dev/u/LordSauron)\
**Replies:** 15\
**Last updated:** [February 8, 2024, 10:17am UTC](https://discourse.laminas.dev/t/translate-laminas-validator-messagetemplates/3422 "2024-02-08T10:17:17Z")

</div>

Hi all, it’s the first time I have to ask a question myself because I wasn’t able to google an answer and ChathGPT was no help either. Please be nice to me, I am neither a developer nor a student. Chef I have learned a…

---

## [How to set Translation Domain for all Viewhelpers](https://discourse.laminas.dev/t/how-to-set-translation-domain-for-all-viewhelpers/3588)

<div class="topic-metadata">

**Author:** [@mimmi20](https://discourse.laminas.dev/u/mimmi20)\
**Replies:** 1\
**Last updated:** [January 30, 2024, 10:54am UTC](https://discourse.laminas.dev/t/how-to-set-translation-domain-for-all-viewhelpers/3588 "2024-01-30T10:54:31Z")

</div>

We have an web application with the following configuration: we use lamias-i18n, laminas-view and laminas-form the app is customized for some partners, the language configuration is stored in the db and is loaded dynam…

---

## [ARRAY or OBJECT](https://discourse.laminas.dev/t/array-or-object/3569)

<div class="topic-metadata">

**Author:** [@Emma](https://discourse.laminas.dev/u/Emma)\
**Replies:** 5\
**Last updated:** [December 31, 2023, 11:36pm UTC](https://discourse.laminas.dev/t/array-or-object/3569 "2023-12-31T23:36:44Z")

</div>

I have an error when showing my view the table with information in my database, it says Warning: foreach() argument must be of type array|object, null given in C:\\xampp\\htdocs\\bemira\\example\\module \\Application\\view\\test…

---

## [Controller, view, module config](https://discourse.laminas.dev/t/controller-view-module-config/3568)

<div class="topic-metadata">

**Author:** [@Emma](https://discourse.laminas.dev/u/Emma)\
**Replies:** 10\
**Last updated:** [December 31, 2023, 11:33pm UTC](https://discourse.laminas.dev/t/controller-view-module-config/3568 "2023-12-31T23:33:34Z")

</div>

hello, someone could help me, I am new in the use of the framework of lamina, then I encountered the problem that I do not know how to put my controller with my view, I created my controller called testcontroller, and cr…

[Next page](https://discourse.laminas.dev/tag/laminas-mvc/49.md?match_all_tags=true&page=1&tags%5B%5D=laminas-mvc)
