Questions tagged [laminas]

Laminas (previously Zend Framework), is an open source general purpose application framework implemented in PHP and licensed under the New BSD license.

Laminas, previously , is an open source web application framework implemented in PHP and licensed under the New BSD license.

The Laminas Project is comprised of the following sub-projects:

154 questions
1
vote
1 answer

PHP Foreach in foreach loop

I have this long foreach code I want to use to get folders and subfolders ids in order to be able to delete them. // first foreach code $idsToDelete = $this->entityManager->getRepository(Folders::class) …
dino
  • 23
  • 4
1
vote
1 answer

Laminas (Zend Framework 3) Doctrine input filter callback validator - "Call to a member function getId() on null" when isValid false

I have a book management module in my application. When editing a book (in the form) I want to check whether the current reading progress (number of read pages) is not greater than the number of all pages of the book. Form fields are called…
1
vote
1 answer

Undefined const "Laminas\Soap\SOAP_1_2"

i'm starting with Soap in PHP and i have a little problem with the Laminas framework, who throw this error. Error of PHP and this is the code
SGT911
  • 13
  • 1
  • 4
1
vote
0 answers

How to manipulate SOAP response tags with Viewflex ZOAP library in laravel

I was trying to get tag inside of tag like so 288 6 125 106
1
vote
1 answer

How can I output a php image resource using Laminas MVC?

I currently output an image like this (inside a controller class): ob_start(); header("Content-Type: image/gif"); imagegif($image_resource); imagedestroy($image_resource); $content_string = ob_get_clean(); …
Artem Goutsoul
  • 733
  • 5
  • 17
1
vote
1 answer

Laminas, problem with passing filtered fieldset inputs values to validator factory

I use Laminas of most recent version. I have a fieldset that is added to a form via init() and it is set as a base fieldset. If you define getInputFilterSpecification() in the fieldset, before the update of the Laminas framework (I must admit, I…
Dima Dz
  • 512
  • 1
  • 5
  • 17
1
vote
2 answers

Fatal error: Trait 'Laminas\Db\Adapter\Laminas\Db\Adapter\AdapterInterface' not found in /var/www/vendor/laminas/laminas-db/src/Adapter/Adapter.php

I keep getting this error when I'm trying to open Album application from Laminas MVC tutorial. I use multicontainer configuration in Docker which consists of linked containers. These are laminas-mvc-tutorial container and mysql database container.…
wasor4ik
  • 21
  • 2
1
vote
0 answers

Get attachments with IMAP

Hello Im trying to get all email Attachments from my email inbox with the PHP Laminas Framework I tried this but it wouldn't work im not sure why... how do i extract attachments with laminas from emails? use Laminas\Mail\Storage\Imap; use…
smrtsremwsn
  • 23
  • 1
  • 6
1
vote
1 answer

Error: (root) Additional property laminas is not allowed

I keep getting this error every time I execute docker-compose up -d command in Windows CLI. Please help me solve this problem. Docker-compose.yml file which I'm using is part of Laminas skeleton application and was prewritten there. Here is…
wasor4ik
  • 21
  • 2
1
vote
1 answer

Custom validators with params in Laminas API Tools

How can I add custom validators with parameters in API Tools GUI? I wrote a custom validator + factory. I have some setters+getters there. How can I configure this validator the way it would: show up in the list of available validators in the GUI…
Sfisioza
  • 3,830
  • 6
  • 42
  • 57
1
vote
0 answers

Laminas-Cache 2.13 PHP8 upgrade

I've been running into some problems upgrading my server from PHP7.3 to PHP8.0, so I figured I'd list what I've found and ask if anyone else has a better solution. The Problem I'm running into: I've got a PHP Laminas application that uses the…
1
vote
0 answers

Adding Authentication to SOAP web services using Laminas-soap and php

Hello fellow travellers, I am trying to learn how to create SOAP Web services end point in PHP. I have found Laminas-soap with its elegant solution. However when trying to add authentication to it although it works when adding creditials to…
Kaloy
  • 91
  • 1
  • 12
1
vote
2 answers

Laminas Unit-test controller-action POST parameter does not work

I have a controller extends AbstractHttpControllerTestCase. I try to pass a parameter (some_uuid) to the dispatch() function (inside my testFoo function): $this->dispatch('/my-special-url', 'POST', ['some_uuid' =>…
bitkorn
  • 628
  • 1
  • 8
  • 22
1
vote
1 answer

The callback of delegator factory returns null

I would like to wrap an existing service with another one, so, I've found that there is a delegator factory mechanism https://docs.mezzio.dev/mezzio/v3/features/container/delegator-factories/ The service is very simple and I've mostly copy-pasted…
pepper
  • 1,732
  • 2
  • 17
  • 33
1
vote
1 answer

Zf3 populate select Element with data from Database

I know this topic was discussed 2 years ago. But I stuck on difficulty that I would like to solve. I would like to create a zf3 form which contains more than two Select Element. I would like to populate them with data coming from different…
Samuel N.
  • 13
  • 5
1
2
3
10 11