164 questions
0 votes
1 answer
87 views
PHP crop and resize image on server and save to servermap
I upload a file with laminas/zend and do some validations for safety. How can I crop and resize the image on the server and save the cropped/resized image to the same (server) directory as the ...
0 votes
0 answers
28 views
Why do Laminas MVC packages have a ConfigProvider class?
I have the following problem: I'm trying to create a package for laminas MVC. But I am kinda confused as to why they have a ConfigProvider class and to what purpose they serve. Are they required for ...
1 vote
1 answer
60 views
data is being written into session just by setting it to a form
My code is something like this: public function fooAction() { $session = new Session('Boo'); $form = new FooForm(); if($this->getRequest()->isPost()) { $form->setData($this-&...
1 vote
0 answers
57 views
Dependent dropdown list using Laminas framework and doctrine-orm - The input was not found in the haystack
The form is working fine. All the selects and other form elements are works fine when I submit. The only problem is the community_id which is dependent on the district. Its always given The input was ...
1 vote
1 answer
85 views
Cached keys as "Array" or "Object" - Laminas Cache with Doctrine (PHP8.3)
The question has been also posted here: https://discourse.laminas.dev/t/laminas-cache-with-doctrine-doctrine-orm-6-1-laminas-cache-3-12-php-8-3/3780 Clean installation on PHP8.3. Using the following ...
2 votes
1 answer
193 views
Trouble implementing redis cache in php laminas
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 ...
1 vote
1 answer
198 views
Unable to post using GuzzleHttp: Error: Header value must be scalar or null but array provided
I'm trying to post the following html form using GuzzleHttp but I'm unable to do so because of the error while setting the form_params in the header. InvalidArgumentException: Header value must be ...
0 votes
1 answer
29 views
Reset row_class or assign a different value instead of adding a new one
I'm using the twbs-helper-plugin in a Laminas project to render form elements. I can't figure out how to define form elements without a spacing between them. By default, class="mb-3" is ...
0 votes
1 answer
56 views
Migrate Apigility application to Laminas
I'm trying to migrate an existing application made with ZF3/Apigility to Laminas/ApiTools. I already tried tutorials/guides supposed to get me through a proper migration, nothing ever worked for me, ...
1 vote
1 answer
404 views
Is it safe to remove composer package: "laminas/laminas-zendframework-bridge" in symfony 6.4?
I am upgrading my symfony tot 6.4. Since 6.3 I have seen this warning while updating packages in Symfony: "Package laminas/laminas-zendframework-bridge is abandoned, you should avoid using it. ...
1 vote
1 answer
468 views
Unable to resolve service Laminas MVC Cache Storage
Unable to Resolve Service: How does one resolve a service via a /conf/autoload/local.php config file. Error: Fatal error: Uncaught Laminas\ServiceManager\Exception\ServiceNotFoundException: Unable to ...
1 vote
1 answer
176 views
Issue with laminas-test unit testing
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....
-1 votes
1 answer
239 views
Remove Drepracated \Zend_Pdf in magento 2
I have upgraded my magento versio to 2.4.6-p1, I need to change the Zend with Luminas. In my file I am having the following line: $this->pdf = new \Zend_Pdf(); How do I change this Zend to ...
0 votes
1 answer
241 views
Class "Laminas\\View\\HelperPluginManager" not found after migration from zendframework2 to laminas
I migratet my Project with the laminas migration tool from zendframework2 to laminas. I get these issues when I try to Init my Application with: Laminas\Mvc\Application::init(require 'config/...
0 votes
1 answer
439 views
Is there a method for incorporating a conditional clause within a Laminas Db Select join operation?
I have been working on two tables (A and B), what I want to do is fetch data from these tables using a left join in laminas db. The following code is of importance $select->join(array('b' => '...