# Questions

**URL:** https://discourse.laminas.dev/c/questions/5.md?page=2

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

**Page:** 3

---

## [Question about FastRoute caching](https://discourse.laminas.dev/t/question-about-fastroute-caching/3010)

<div class="topic-metadata">

**Author:** [@wnull](https://discourse.laminas.dev/u/wnull)\
**Replies:** 2\
**Last updated:** [August 7, 2024, 10:04am UTC](https://discourse.laminas.dev/t/question-about-fastroute-caching/3010 "2024-08-07T10:04:08Z")

</div>

The question is quite simple, can I generate the FastRoute cache manually somehow, before the project starts and it starts generating everything that is configured by itself? Due to the fact that up to 30,000 thousand re…

---

## [Translated URLs receive a "404 error page not found" when the language is switched](https://discourse.laminas.dev/t/translated-urls-receive-a-404-error-page-not-found-when-the-language-is-switched/3745)

<div class="topic-metadata">

**Author:** [@LordSauron](https://discourse.laminas.dev/u/LordSauron)\
**Replies:** 1\
**Last updated:** [August 6, 2024, 8:17pm UTC](https://discourse.laminas.dev/t/translated-urls-receive-a-404-error-page-not-found-when-the-language-is-switched/3745 "2024-08-06T20:17:40Z")

</div>

Hello to you all, I’m still learning because I’m still alive - wish you all the very best. After my initial problems with internationalization, I made a small module and it works exactly as I wanted it to. Today I fina…

---

## [Laminas form + upload file + POST Content-Length](https://discourse.laminas.dev/t/laminas-form-upload-file-post-content-length/2253)

<div class="topic-metadata">

**Author:** [@Kriss\_Kals](https://discourse.laminas.dev/u/Kriss_Kals)\
**Replies:** 6\
**Last updated:** [August 6, 2024, 4:47pm UTC](https://discourse.laminas.dev/t/laminas-form-upload-file-post-content-length/2253 "2024-08-06T16:47:41Z")

</div>

Hello. When uploading a file that far exceeds the allowed size before form validation is performed, I get the: Warning POST Content-Length of ... exceeds the limit of ... How can I handle this error?

---

## [PHP versions for laminas/laminas-stdlib:3.18.0](https://discourse.laminas.dev/t/php-versions-for-laminas-laminas-stdlib-3-18-0/3744)

<div class="topic-metadata">

**Author:** [@Lou](https://discourse.laminas.dev/u/Lou)\
**Replies:** 1\
**Last updated:** [August 3, 2024, 9:47am UTC](https://discourse.laminas.dev/t/php-versions-for-laminas-laminas-stdlib-3-18-0/3744 "2024-08-03T09:47:12Z")

</div>

Hello, My question is, what versions of PHP does laminas/laminas-stdlib 3.18.0 support? Thanks!

---

## [Strange behaviour of ImplicitOptionsMiddleware with multiple route on same path](https://discourse.laminas.dev/t/strange-behaviour-of-implicitoptionsmiddleware-with-multiple-route-on-same-path/496)

<div class="topic-metadata">

**Author:** [@dominicdettabp](https://discourse.laminas.dev/u/dominicdettabp)\
**Replies:** 25\
**Last updated:** [May 5, 2018, 8:52pm UTC](https://discourse.laminas.dev/t/strange-behaviour-of-implicitoptionsmiddleware-with-multiple-route-on-same-path/496 "2018-05-05T20:52:51Z")

</div>

I’m trying to retrieve the allowed methods for a specific endpoint. The problem is when I try to do a OPTIONS request the ImplicitOptionsMiddleware match only the last route configured and retrieves the corrisponding al…

---

## [Can't get "Package" to show in Api-Tools Admin UI](https://discourse.laminas.dev/t/cant-get-package-to-show-in-api-tools-admin-ui/3737)

<div class="topic-metadata">

**Author:** [@dickdono](https://discourse.laminas.dev/u/dickdono)\
**Replies:** 1\
**Last updated:** [July 27, 2024, 10:12am UTC](https://discourse.laminas.dev/t/cant-get-package-to-show-in-api-tools-admin-ui/3737 "2024-07-27T10:12:32Z")

</div>

I’ve recently done a composer bump to get our Api-Tools up to the latest (and apparently, last :slightly\_frowning\_face:) version of Api-Tools. But when I go into the UI, the “Package” option does not show. I’m guessing…

---

## [Get parent form field-value inside Fieldset-validator](https://discourse.laminas.dev/t/get-parent-form-field-value-inside-fieldset-validator/3736)

<div class="topic-metadata">

**Author:** [@lon9man](https://discourse.laminas.dev/u/lon9man)\
**Replies:** 1\
**Last updated:** [July 24, 2024, 6:34pm UTC](https://discourse.laminas.dev/t/get-parent-form-field-value-inside-fieldset-validator/3736 "2024-07-24T18:34:09Z")

</div>

Hello, what is the suggested way to get parent form values inside validators of fieldset? basic idea: parent form has field parentField form has collection of fieldset depending to this parentField-value of parent for…

---

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

---

## [Laminas Validator Context](https://discourse.laminas.dev/t/laminas-validator-context/3729)

<div class="topic-metadata">

**Author:** [@earthiverse](https://discourse.laminas.dev/u/earthiverse)\
**Replies:** 1\
**Last updated:** [July 10, 2024, 2:21am UTC](https://discourse.laminas.dev/t/laminas-validator-context/3729 "2024-07-10T02:21:58Z")

</div>

In Laminas\\Validator\\ValidatorInterface there’s isValid($value), but some of the Validators, like Laminas\\Validator\\Callback, have isValid($value, $context). Is there a reason the context isn’t defined in the Interface? …

---

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

---

## [New blog post: "Dotkernel API: a replacement for legacy Laminas API Tools"](https://discourse.laminas.dev/t/new-blog-post-dotkernel-api-a-replacement-for-legacy-laminas-api-tools/3725)

<div class="topic-metadata">

**Author:** [@froschdesign](https://discourse.laminas.dev/u/froschdesign)\
**Replies:** 1\
**Last updated:** [July 5, 2024, 5:29pm UTC](https://discourse.laminas.dev/t/new-blog-post-dotkernel-api-a-replacement-for-legacy-laminas-api-tools/3725 "2024-07-05T17:29:46Z")

</div>

The Technical Steering Committee for the Laminas Project has decided to mark Laminas API Tools (formerly Apigility) as security-only, indicating that no new features or enhancements will be developed and only security-r…

---

## [Fatal error: Declaration of Commun\\View\\Helper\\FormRowTd::render](https://discourse.laminas.dev/t/fatal-error-declaration-of-commun-view-helper-formrowtd-render/3722)

<div class="topic-metadata">

**Author:** [@ebuddy](https://discourse.laminas.dev/u/ebuddy)\
**Replies:** 6\
**Last updated:** [June 25, 2024, 7:13am UTC](https://discourse.laminas.dev/t/fatal-error-declaration-of-commun-view-helper-formrowtd-render/3722 "2024-06-25T07:13:44Z")

</div>

Hello everyone. I’m back again with my school web application which worked very fine. I do not know why I get this error. I need to say that everything was fine and I regularly update my packages with composer in or…

---

## [Style checkbox as switch](https://discourse.laminas.dev/t/style-checkbox-as-switch/3710)

<div class="topic-metadata">

**Author:** [@oliver681](https://discourse.laminas.dev/u/oliver681)\
**Replies:** 8\
**Last updated:** [June 20, 2024, 10:00am UTC](https://discourse.laminas.dev/t/style-checkbox-as-switch/3710 "2024-06-20T10:00:26Z")

</div>

I want to style a checkbox as a switch, but I don’t know how to achieve this. I’m using bootstrap 4.6.2 and TWBS. I thought something like this would do the trick but it doesn’t. $this-\>add(\[ 'type'…

---

## [How to find out if development mode is on?](https://discourse.laminas.dev/t/how-to-find-out-if-development-mode-is-on/3709)

<div class="topic-metadata">

**Author:** [@modir](https://discourse.laminas.dev/u/modir)\
**Replies:** 5\
**Last updated:** [June 13, 2024, 8:35am UTC](https://discourse.laminas.dev/t/how-to-find-out-if-development-mode-is-on/3709 "2024-06-13T08:35:20Z")

</div>

What is the best way to find out if the development mode is on? At the moment we use the following code: if (strpos(exec('./vendor/bin/laminas-development-mode status'), 'ENABLED') === false) The problem we have now is…

---

## [Laminas-cli: There are no commands defined in the "order" namespace](https://discourse.laminas.dev/t/laminas-cli-there-are-no-commands-defined-in-the-order-namespace/3707)

<div class="topic-metadata">

**Author:** [@modir](https://discourse.laminas.dev/u/modir)\
**Replies:** 15\
**Last updated:** [June 7, 2024, 9:54am UTC](https://discourse.laminas.dev/t/laminas-cli-there-are-no-commands-defined-in-the-order-namespace/3707 "2024-06-07T09:54:15Z")

</div>

I somehow don’t understand the intro fully. I added the configurations either directly as described in the first four steps at Introduction - laminas-cli - Laminas Docs or I added in the module configuration. I always ge…

---

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

---

## [Laminas-db sqlsrv exceptions, how to read error text](https://discourse.laminas.dev/t/laminas-db-sqlsrv-exceptions-how-to-read-error-text/3356)

<div class="topic-metadata">

**Author:** [@terok](https://discourse.laminas.dev/u/terok)\
**Replies:** 5\
**Last updated:** [May 23, 2024, 7:36pm UTC](https://discourse.laminas.dev/t/laminas-db-sqlsrv-exceptions-how-to-read-error-text/3356 "2024-05-23T19:36:02Z")

</div>

My app uses laminas-db and SQL Server. When there’s a SQL error condition, this code in src\\Adapter\\Driver\\Sqlsrv\\Connection handles it: // if the returnValue is something other than a Sqlsrv\_result, bypass wra…

---

## [Mezzio routes autowiring not working with delegators in a module](https://discourse.laminas.dev/t/mezzio-routes-autowiring-not-working-with-delegators-in-a-module/3701)

<div class="topic-metadata">

**Author:** [@ALTAMASH80](https://discourse.laminas.dev/u/ALTAMASH80)\
**Replies:** 5\
**Last updated:** [May 20, 2024, 6:09pm UTC](https://discourse.laminas.dev/t/mezzio-routes-autowiring-not-working-with-delegators-in-a-module/3701 "2024-05-20T18:09:49Z")

</div>

Hi, I’m trying to autowire routes as suggested in the docs here. My config provider class is as follows. class ConfigProvider { public function \_\_invoke(): array { return \[ 'dependencies' =\> …

---

## [Invalid DateTime Keep Coming](https://discourse.laminas.dev/t/invalid-datetime-keep-coming/3699)

<div class="topic-metadata">

**Author:** [@sanjivsharmalv](https://discourse.laminas.dev/u/sanjivsharmalv)\
**Replies:** 13\
**Last updated:** [May 18, 2024, 7:47pm UTC](https://discourse.laminas.dev/t/invalid-datetime-keep-coming/3699 "2024-05-18T19:47:38Z")

</div>

This is how I add element to form in Laminas: // Add "my-date-field" field $this-\>add(\[ 'type' =\> DateTimeSelect::class, 'name' =\> 'my-date-field', 'options' =\> \[ …

---

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

---

## [CORS issue, just need verification](https://discourse.laminas.dev/t/cors-issue-just-need-verification/3692)

<div class="topic-metadata">

**Author:** [@Paul\_Allsopp](https://discourse.laminas.dev/u/Paul_Allsopp)\
**Replies:** 2\
**Last updated:** [May 17, 2024, 5:04am UTC](https://discourse.laminas.dev/t/cors-issue-just-need-verification/3692 "2024-05-17T05:04:00Z")

</div>

Hey all. I have an Angular frontend connecting to a Mezzio API and am having an issue getting my heartbeat endpoint connection working. This is a new backend, and all I’m looking for here is confirmation that my mezzio-…

---

## [Create a SimpleType element](https://discourse.laminas.dev/t/create-a-simpletype-element/2237)

<div class="topic-metadata">

**Author:** [@sxzero](https://discourse.laminas.dev/u/sxzero)\
**Replies:** 5\
**Last updated:** [May 14, 2024, 3:01pm UTC](https://discourse.laminas.dev/t/create-a-simpletype-element/2237 "2024-05-14T15:01:21Z")

</div>

Hi!, I’m migrating an API based on nusoap and I want to know, how I can create “SimpleType” elements with Laminas? First, I create a soap server with nusoap: require\_once \_\_DIR\_\_ . "/vendor/autoload.php"; require\_once…

---

## [Problem with WSDL AutoDiscovery](https://discourse.laminas.dev/t/problem-with-wsdl-autodiscovery/3688)

<div class="topic-metadata">

**Author:** [@stefbortolin](https://discourse.laminas.dev/u/stefbortolin)\
**Replies:** 3\
**Last updated:** [May 13, 2024, 7:18am UTC](https://discourse.laminas.dev/t/problem-with-wsdl-autodiscovery/3688 "2024-05-13T07:18:54Z")

</div>

I am using WSDL AutoDiscovery to generate a WSDL based on my system classes. I have to follow a structure given by an XML, in some cases of this XML, I have an array of objects and I don’t know how to define that in the …

---

## [Multiple models -\> 1 Controller](https://discourse.laminas.dev/t/multiple-models-1-controller/3685)

<div class="topic-metadata">

**Author:** [@Scrappy](https://discourse.laminas.dev/u/Scrappy)\
**Replies:** 7\
**Last updated:** [May 8, 2024, 9:36am UTC](https://discourse.laminas.dev/t/multiple-models-1-controller/3685 "2024-05-08T09:36:28Z")

</div>

Can someone please point me to a sample of a controller that builds a bridge from several models into one view? I’ve spent the weekend scouring the docs and searching the web for an example … I have 5 different models …

---

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

---

## [Manual Wiring Arguments for Service depending on route](https://discourse.laminas.dev/t/manual-wiring-arguments-for-service-depending-on-route/3671)

<div class="topic-metadata">

**Author:** [@hfehderau](https://discourse.laminas.dev/u/hfehderau)\
**Replies:** 10\
**Last updated:** [April 30, 2024, 3:09pm UTC](https://discourse.laminas.dev/t/manual-wiring-arguments-for-service-depending-on-route/3671 "2024-04-30T15:09:29Z")

</div>

Hello everyone and thank you for your time reading that. I have two different routes, which are described via ConfigProvider, and two middlewares inside: Auth Handler The behavior for both of them should be exactly t…

---

## [Understanding Salt security](https://discourse.laminas.dev/t/understanding-salt-security/3674)

<div class="topic-metadata">

**Author:** [@malwon](https://discourse.laminas.dev/u/malwon)\
**Replies:** 3\
**Last updated:** [April 30, 2024, 10:52am UTC](https://discourse.laminas.dev/t/understanding-salt-security/3674 "2024-04-30T10:52:33Z")

</div>

Hello, I have problems understanding the example in the docs about salting. The following SQL did noct work for me: \`PASSWORD(CONCAT('staticSalt', ?, password\_salt))\` Laminas\\Authentication\\Result::getCode returns: -…

---

## [Can Laminas manage the ilike operator?](https://discourse.laminas.dev/t/can-laminas-manage-the-ilike-operator/3673)

<div class="topic-metadata">

**Author:** [@laureuh](https://discourse.laminas.dev/u/laureuh)\
**Replies:** 3\
**Last updated:** [April 26, 2024, 12:25pm UTC](https://discourse.laminas.dev/t/can-laminas-manage-the-ilike-operator/3673 "2024-04-26T12:25:50Z")

</div>

Hello everyone, I’m working on Laminas with a postgresql database. I noticed in the Laminas packages that operators such as between, like, etc. could be managed. Except that I can’t find anything on the ilike specific …

---

## [Command chain without prompt to continue](https://discourse.laminas.dev/t/command-chain-without-prompt-to-continue/3668)

<div class="topic-metadata">

**Author:** [@Stefan\_Bolsterli](https://discourse.laminas.dev/u/Stefan_Bolsterli)\
**Replies:** 4\
**Last updated:** [April 25, 2024, 8:24am UTC](https://discourse.laminas.dev/t/command-chain-without-prompt-to-continue/3668 "2024-04-25T08:24:11Z")

</div>

I haven’t found any option to automatically execute several command as a chain without having a prompt to manually confirm to execute the next command. –no-interaction results in only have the first command executed. I…

[Previous page](https://discourse.laminas.dev/c/questions/5.md?page=1)

[Next page](https://discourse.laminas.dev/c/questions/5.md?page=3)
