# \#zend-mvc

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

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

---

## [Retrieve form parameter into fieldset](https://discourse.laminas.dev/t/retrieve-form-parameter-into-fieldset/2481)

<div class="topic-metadata">

**Author:** [@ebuddy](https://discourse.laminas.dev/u/ebuddy)\
**Replies:** 8\
**Last updated:** [July 24, 2024, 4:31pm UTC](https://discourse.laminas.dev/t/retrieve-form-parameter-into-fieldset/2481 "2024-07-24T16:31:49Z")

</div>

Hi, I have passed parameters when calling my form in my controller. My form contains a fieldset in wich I need to retrieve data from table according the passed parameters in my form. How can I get those parameters ? H…

---

## [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…

---

## [Title: Issue with Loading Module in PHPUnit for Testing: "Class Not Found" Error](https://discourse.laminas.dev/t/title-issue-with-loading-module-in-phpunit-for-testing-class-not-found-error/3400)

<div class="topic-metadata">

**Author:** [@Mehdi\_Lechhab](https://discourse.laminas.dev/u/Mehdi_Lechhab)\
**Replies:** 6\
**Last updated:** [September 8, 2023, 4:06pm UTC](https://discourse.laminas.dev/t/title-issue-with-loading-module-in-phpunit-for-testing-class-not-found-error/3400 "2023-09-08T16:06:48Z")

</div>

Hello everyone, I’m currently facing an issue with loading a module in PHPUnit for testing purposes. I have a module called “Candidat” in my Laminas (formerly Zend Framework) application, and I’m trying to write unit te…

---

## [Transfer ZF2 from centos server 6 to another server ubuntu 22.04](https://discourse.laminas.dev/t/transfer-zf2-from-centos-server-6-to-another-server-ubuntu-22-04/3049)

<div class="topic-metadata">

**Author:** [@Apple\_Mac](https://discourse.laminas.dev/u/Apple_Mac)\
**Replies:** 0\
**Last updated:** [September 14, 2022, 4:02pm UTC](https://discourse.laminas.dev/t/transfer-zf2-from-centos-server-6-to-another-server-ubuntu-22-04/3049 "2022-09-14T16:02:59Z")

</div>

Hi Guys: For site moving between two different linux server what steps must do? I want move a site that written in zend framework 2.0 from centos server 6.0 to another server ubuntu server 22.04, i appreciate that tell…

---

## [Zend\\Session error with phpunit and php 7.2 (but not \<= 7.1)](https://discourse.laminas.dev/t/zend-session-error-with-phpunit-and-php-7-2-but-not-7-1/712)

<div class="topic-metadata">

**Author:** [@davidmintz](https://discourse.laminas.dev/u/davidmintz)\
**Replies:** 12\
**Last updated:** [August 17, 2022, 11:16am UTC](https://discourse.laminas.dev/t/zend-session-error-with-phpunit-and-php-7-2-but-not-7-1/712 "2022-08-17T11:16:48Z")

</div>

I’m trying to update my zend-mvc project to run with PHP 7.2, and it seems all good in the web environment, but when I run phpunit tests, I encounter errors like: 1) ApplicationTest\\Controller\\AuthControllerTest::testRe…

---

## [Debugging In Zend framework 3](https://discourse.laminas.dev/t/debugging-in-zend-framework-3/993)

<div class="topic-metadata">

**Author:** [@swordfish](https://discourse.laminas.dev/u/swordfish)\
**Replies:** 15\
**Last updated:** [July 4, 2022, 8:49pm UTC](https://discourse.laminas.dev/t/debugging-in-zend-framework-3/993 "2022-07-04T20:49:37Z")

</div>

I’ve just worked through the ZF3 tutorial and it isn’t working. The error I get is: \[Mon Mar 18 09:27:18 2019\] PHP Fatal error: Uncaught Zend\\ModuleManager\\Exception\\RuntimeException: Module (Album) could not be initi…

---

## [How to retrieve all available routes in an application?](https://discourse.laminas.dev/t/how-to-retrieve-all-available-routes-in-an-application/2668)

<div class="topic-metadata">

**Author:** [@Koen1999](https://discourse.laminas.dev/u/Koen1999)\
**Replies:** 0\
**Last updated:** [December 24, 2021, 1:43pm UTC](https://discourse.laminas.dev/t/how-to-retrieve-all-available-routes-in-an-application/2668 "2021-12-24T13:43:22Z")

</div>

I want to quickly improve test coverage for my project by doing some basic tests. In specific, I had the idea to test whether all Controller actions return a non-500 status code since this is something that all actions s…

---

## [Create an URL with Hostname type and relative URL](https://discourse.laminas.dev/t/create-an-url-with-hostname-type-and-relative-url/2589)

<div class="topic-metadata">

**Author:** [@JulienH](https://discourse.laminas.dev/u/JulienH)\
**Replies:** 1\
**Last updated:** [November 8, 2021, 7:49am UTC](https://discourse.laminas.dev/t/create-an-url-with-hostname-type-and-relative-url/2589 "2021-11-08T07:49:12Z")

</div>

Hello, I would like to create an URL with $this-\>url() in my view and using a Hostname type in my module.config.php file: 'front' =\> \[ 'type' =\> Hostname::class, 'options' =\> \[ …

---

## [ZF2 and composer](https://discourse.laminas.dev/t/zf2-and-composer/2317)

<div class="topic-metadata">

**Author:** [@inkimar](https://discourse.laminas.dev/u/inkimar)\
**Replies:** 1\
**Last updated:** [October 8, 2021, 6:05am UTC](https://discourse.laminas.dev/t/zf2-and-composer/2317 "2021-10-08T06:05:33Z")

</div>

Hi, I am maintaining an application based php 5.1.6 and ZF 2.10 (on the production machine)- that application is written around 2008. There are others dependencies (such as qcode - on github ), not feeling comfortable…

---

## [How to authenticate for the whole module level application?](https://discourse.laminas.dev/t/how-to-authenticate-for-the-whole-module-level-application/847)

<div class="topic-metadata">

**Author:** [@jobsfan](https://discourse.laminas.dev/u/jobsfan)\
**Replies:** 10\
**Last updated:** [July 22, 2021, 2:39am UTC](https://discourse.laminas.dev/t/how-to-authenticate-for-the-whole-module-level-application/847 "2021-07-22T02:39:23Z")

</div>

Hi, I am working on how to anthenticate and authorize for my member module in ZF3 project I worked with zf2 for a while, and remember that in ZF2, we used to do with the following: in the module.php for the module. we …

---

## [Class not fount in ServiceManager.php](https://discourse.laminas.dev/t/class-not-fount-in-servicemanager-php/2269)

<div class="topic-metadata">

**Author:** [@iss\_yaz](https://discourse.laminas.dev/u/iss_yaz)\
**Replies:** 1\
**Last updated:** [April 27, 2021, 2:27pm UTC](https://discourse.laminas.dev/t/class-not-fount-in-servicemanager-php/2269 "2021-04-27T14:27:39Z")

</div>

I have zend framework 2, when i launch the project i see this error: Fatal error : Uncaught Error: Class ‘Zend\\Cache\\Service\\StorageCacheAbstractServiceFactory’ not found in C:\\xampp\\htdocs\\gest-commerciale\\vendor\\zendf…

---

## [ZF2- Email Sending properly ( how do i know if email has not sent )](https://discourse.laminas.dev/t/zf2-email-sending-properly-how-do-i-know-if-email-has-not-sent/2186)

<div class="topic-metadata">

**Author:** [@Aawshirazeem](https://discourse.laminas.dev/u/Aawshirazeem)\
**Replies:** 1\
**Last updated:** [March 16, 2021, 2:37pm UTC](https://discourse.laminas.dev/t/zf2-email-sending-properly-how-do-i-know-if-email-has-not-sent/2186 "2021-03-16T14:37:57Z")

</div>

Hello Everyone, I have used Zend f-2 to send emails to through cronjob. emails are sending sing and multiple perfectly. That is working perfectly. what I would like to know is when There is wrong email address given (…

---

## [From Zend Framework 1 to Laminas](https://discourse.laminas.dev/t/from-zend-framework-1-to-laminas/1945)

<div class="topic-metadata">

**Author:** [@chiavarini95](https://discourse.laminas.dev/u/chiavarini95)\
**Replies:** 7\
**Last updated:** [November 22, 2020, 8:14pm UTC](https://discourse.laminas.dev/t/from-zend-framework-1-to-laminas/1945 "2020-11-22T20:14:43Z")

</div>

Hi! I have a project for my website developed by Zend Framework version 1 and I would like to transform it in a Laminas project. How can I do it easily? Thanks!

---

## [How to add/modify collection entity fields in apigility + doctrine + ZF3 MVC?](https://discourse.laminas.dev/t/how-to-add-modify-collection-entity-fields-in-apigility-doctrine-zf3-mvc/1898)

<div class="topic-metadata">

**Author:** [@testuser](https://discourse.laminas.dev/u/testuser)\
**Replies:** 0\
**Last updated:** [October 19, 2020, 6:43am UTC](https://discourse.laminas.dev/t/how-to-add-modify-collection-entity-fields-in-apigility-doctrine-zf3-mvc/1898 "2020-10-19T06:43:43Z")

</div>

I have “image” table. I use apigility to get collection of items from image table. I use REST GET call for this. I have this in my ItemMapper.php file: public function fetchAll($params) { $query = $this-\>itemManag…

---

## [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…

---

## [German startup searching for laminas developer](https://discourse.laminas.dev/t/german-startup-searching-for-laminas-developer/1693)

<div class="topic-metadata">

**Author:** [@pilleck](https://discourse.laminas.dev/u/pilleck)\
**Replies:** 1\
**Last updated:** [July 2, 2020, 5:28pm UTC](https://discourse.laminas.dev/t/german-startup-searching-for-laminas-developer/1693 "2020-07-02T17:28:52Z")

</div>

Hello everybody, I’m not sure if it’s common to post job offers in this forum (even if not, I hope its okay for you guys). “We” a german startup are searching for a new college in our product development team. Of cours…

---

## [Error in route parameter that contains dot](https://discourse.laminas.dev/t/error-in-route-parameter-that-contains-dot/1599)

<div class="topic-metadata">

**Author:** [@fgsl](https://discourse.laminas.dev/u/fgsl)\
**Replies:** 3\
**Last updated:** [June 15, 2020, 4:01pm UTC](https://discourse.laminas.dev/t/error-in-route-parameter-that-contains-dot/1599 "2020-06-15T16:01:19Z")

</div>

I have a module that queries data from a Kubernetes cluster. The pods have dots in their names, like “ldap-ndb-df-p.1”. I created a route of type Segment where there is a parameter pod. The router doesn’t match when pod …

---

## [Translation - Changing language](https://discourse.laminas.dev/t/translation-changing-language/1559)

<div class="topic-metadata">

**Author:** [@ebuddy](https://discourse.laminas.dev/u/ebuddy)\
**Replies:** 7\
**Last updated:** [June 6, 2020, 8:49am UTC](https://discourse.laminas.dev/t/translation-changing-language/1559 "2020-06-06T08:49:35Z")

</div>

Hello everyone, I have setted up my config file to use translation like this ; ‘translator’ =\> \[ ‘locale’ =\> ‘en\_US’, ‘translation\_file\_patterns’ =\> \[ \[ ‘base\_dir’ =\> DIR . ‘/…/…/…/data/translations’, ‘type’ =\> ‘i…

---

## [Magento 2 : Error Cannot declare class Zend\_Http\_Client, because the name is already in use](https://discourse.laminas.dev/t/magento-2-error-cannot-declare-class-zend-http-client-because-the-name-is-already-in-use/1637)

<div class="topic-metadata">

**Author:** [@Sandip\_Chandela](https://discourse.laminas.dev/u/Sandip_Chandela)\
**Replies:** 1\
**Last updated:** [June 2, 2020, 10:09am UTC](https://discourse.laminas.dev/t/magento-2-error-cannot-declare-class-zend-http-client-because-the-name-is-already-in-use/1637 "2020-06-02T10:09:00Z")

</div>

We are on Magento 2.3.5 with laminas lib packages. Error is throwing "\*\*Cannot declare class Zend\_Http\_Client, because the name is already in use in include called at /app/xxxxxx/vendor/composer/ClassLoader"\*\* when we u…

---

## [Starting a new project with Laminas](https://discourse.laminas.dev/t/starting-a-new-project-with-laminas/1646)

<div class="topic-metadata">

**Author:** [@ebuddy](https://discourse.laminas.dev/u/ebuddy)\
**Replies:** 3\
**Last updated:** [June 2, 2020, 2:38am UTC](https://discourse.laminas.dev/t/starting-a-new-project-with-laminas/1646 "2020-06-02T02:38:26Z")

</div>

Hello, I want to start a new web application. I would like to know if I need to create a new folder for this priject and install the different packages with composer or can I just copy past an existing project and just…

---

## [Laminas-mvc quick start 404 page](https://discourse.laminas.dev/t/laminas-mvc-quick-start-404-page/1649)

<div class="topic-metadata">

**Author:** [@gurdeep](https://discourse.laminas.dev/u/gurdeep)\
**Replies:** 0\
**Last updated:** [May 26, 2020, 2:56pm UTC](https://discourse.laminas.dev/t/laminas-mvc-quick-start-404-page/1649 "2020-05-26T14:56:02Z")

</div>

Hi there, I was following the tutorial https://docs.laminas.dev/laminas-mvc/quick-start/ and under “Create a new module” (https://docs.laminas.dev/laminas-mvc/quick-start/#create-a-new-module) the download links go to…

---

## [Syntax error, unexpected 'class' (T\_CLASS) in CommonModelTableFactory](https://discourse.laminas.dev/t/syntax-error-unexpected-class-t-class-in-commonmodeltablefactory/1618)

<div class="topic-metadata">

**Author:** [@Pema\_Rekden\_Dorjee](https://discourse.laminas.dev/u/Pema_Rekden_Dorjee)\
**Replies:** 3\
**Last updated:** [May 19, 2020, 1:06pm UTC](https://discourse.laminas.dev/t/syntax-error-unexpected-class-t-class-in-commonmodeltablefactory/1618 "2020-05-19T13:06:08Z")

</div>

\<?php namespace Application\\Model; use Interop\\Container\\ContainerInterface; use Laminas\\ServiceManager\\Factory\\AbstractFactoryInterface; class CommonModelTableFactory implements AbstractFactoryInterface { public f…

---

## [Define global constant for use site wide](https://discourse.laminas.dev/t/define-global-constant-for-use-site-wide/1455)

<div class="topic-metadata">

**Author:** [@josiahking](https://discourse.laminas.dev/u/josiahking)\
**Replies:** 6\
**Last updated:** [March 28, 2020, 10:51am UTC](https://discourse.laminas.dev/t/define-global-constant-for-use-site-wide/1455 "2020-03-28T10:51:12Z")

</div>

Hello everyone, how can i define a global constant in Laminas, so that I can retrieve the data across modules or views site wide. define('SITE\_NAME','Website name'); how is this possible with laminas?

---

## [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…

---

## [Laminas MVC: Configure Automatic Search Engine Protection](https://discourse.laminas.dev/t/laminas-mvc-configure-automatic-search-engine-protection/1458)

<div class="topic-metadata">

**Author:** [@JiNexus](https://discourse.laminas.dev/u/JiNexus)\
**Replies:** 1\
**Last updated:** [March 21, 2020, 1:26pm UTC](https://discourse.laminas.dev/t/laminas-mvc-configure-automatic-search-engine-protection/1458 "2020-03-21T13:26:48Z")

</div>

Hello from the other side! I’ve been developing web applications for a couple of years using Laminas MVC (formerly known as Zend Framework 3) and one thing that frustrate me the most in my past experiences is, when my de…

---

## [Laminas + Doctrine 2.0 issue](https://discourse.laminas.dev/t/laminas-doctrine-2-0-issue/1439)

<div class="topic-metadata">

**Author:** [@visualnetwork](https://discourse.laminas.dev/u/visualnetwork)\
**Replies:** 12\
**Last updated:** [March 18, 2020, 7:18pm UTC](https://discourse.laminas.dev/t/laminas-doctrine-2-0-issue/1439 "2020-03-18T19:18:13Z")

</div>

Hi, I’m switching from Zend Framework 3.0 to Laminas. In ZF3, the Doctrine 2.0 settings work fine, but in Laminas, the Entities report an error when I use EXTEND when declaring a class. If I don’t use EXTEND because i…

---

## [Fatal Error: Class contains 1 abstract method and must therefore be declared abstract or implement the remaining methods](https://discourse.laminas.dev/t/fatal-error-class-contains-1-abstract-method-and-must-therefore-be-declared-abstract-or-implement-the-remaining-methods/1446)

<div class="topic-metadata">

**Author:** [@josiahking](https://discourse.laminas.dev/u/josiahking)\
**Replies:** 4\
**Last updated:** [March 18, 2020, 10:52am UTC](https://discourse.laminas.dev/t/fatal-error-class-contains-1-abstract-method-and-must-therefore-be-declared-abstract-or-implement-the-remaining-methods/1446 "2020-03-18T10:52:21Z")

</div>

Hello everyone, I am new to Laminas and while following the tutorial, I encountered an error when creating my first controller. PHP Fatal error: Class Site\\Controller\\IndexController contains 1 abstract method and mu…

---

## [PHP Fatal Error after Migrate to Laminas](https://discourse.laminas.dev/t/php-fatal-error-after-migrate-to-laminas/1437)

<div class="topic-metadata">

**Author:** [@Pino](https://discourse.laminas.dev/u/Pino)\
**Replies:** 3\
**Last updated:** [March 13, 2020, 7:38pm UTC](https://discourse.laminas.dev/t/php-fatal-error-after-migrate-to-laminas/1437 "2020-03-13T19:38:03Z")

</div>

Hello. I am creating a new website with Magento 2. I have received several warnings on Zend Framework with Composer and so I followed instructions to Migrate to Laminas. Everything seems to have gone well. But now I c…

---

## [Different image permissions and name prefixes with \\Zend\\Filter\\File\\RenameUpload](https://discourse.laminas.dev/t/different-image-permissions-and-name-prefixes-with-zend-filter-file-renameupload/1374)

<div class="topic-metadata">

**Author:** [@testuser](https://discourse.laminas.dev/u/testuser)\
**Replies:** 0\
**Last updated:** [February 12, 2020, 12:55pm UTC](https://discourse.laminas.dev/t/different-image-permissions-and-name-prefixes-with-zend-filter-file-renameupload/1374 "2020-02-12T12:55:01Z")

</div>

Hi, guys! I am using \\Zend\\Filter\\File\\RenameUpload::class as apigility filter. I get uploaded images with different permissions and name prefixes. $ ls -la -rw-r--r-- 1 www-data www-data 134730 Feb 12 14:11 …

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