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
0
votes
1 answer

Laminas-mail. send as UFT8

I work with Laminas (former Zendframework 3). I want to send a mail with Laminas-Mail. I dont know how to change the Content-Type. Currently it is Content-Type: text/html but I want to send UTF8 mails, so therefore I want to use Content-Type:…
Boba Fit
  • 819
  • 6
  • 17
0
votes
1 answer

Implementing a variable callback error message

I'd like to return a variable message based on which one of the if statements fails, but I don't know how to do so within one validator. I'm not quite sure what the best practice is in this case. Both of the if statements require the $entity, and…
lucid
  • 422
  • 3
  • 15
0
votes
1 answer

Laminas Fieldset has static InputFilterSpecification

I have a Fieldset with class members for the inputFilterSpecification: class FileFieldset extends Fieldset implements InputFilterProviderInterface { protected $mimeTypes = ['image/jpg', 'image/png', 'application/pdf']; protected…
bitkorn
  • 628
  • 1
  • 8
  • 22
0
votes
1 answer

How to override the headers of Laminas XML-RPC server response?

Trying to override the headers of Laminas XML-RPC server response. The header Content-Type should be application/xml instead of the default text/html. Having read the docs it isn't clear what to do, it states: Similar to request objects,…
SuperDJ
  • 7,488
  • 11
  • 40
  • 74
0
votes
1 answer

Iterate only unseen messages in IMAP with Laminas Mail

We can count unseen messages with: $unreadMessages = $mail->countMessages([Storage::FLAG_UNSEEN]); How to iterate only those unseen messages? When I iterate all messages (as shown in documentation), it's painfully slow. foreach ($mail as…
Xdg
  • 1,735
  • 2
  • 27
  • 42
0
votes
1 answer

Doctrine 2 define property type without column creation

I have an Address entity which is bind to a ZF / Laminas Form. Some properties are defined. Such as street, country, .... /** * @var string * * @ORM\Column(type="string", length=2) */ protected $country; /** * @var float * *…
ceadreak
  • 1,662
  • 2
  • 18
  • 27
0
votes
2 answers

Laminas Image Resize

I'm creating a website with Laminas (new zend framework). And I have to resize the upload images. The images are NOT being upload using zend form as I created a dropzone. The thing is that I need to do some resizing in the controller. Previously…
Faabass
  • 1,394
  • 8
  • 29
  • 58
0
votes
2 answers

$option in Rediect->toRoute() use for what?

I have a question about Controller Plugin: Redirect.php I have already read about it but still don't understand clearly /** * Generate redirect response based on given route * * @param string $route RouteInterface name * @param …
0
votes
4 answers

Laminas Config Module Routing

I have started the latest tutorial for Laminas. The routing for a new module called Provider is not working A 404 error occurred Page not found. The requested URL could not be matched by routing. on looking at my Module.php code I see: getConfig()…
0
votes
1 answer

Zend 2 escaping single-quote

I am using Zend Framework 2 to generate the following escaped single-quote SQL query, SELECT `document`.* FROM `document` WHERE ( `document`.`document_taxon` LIKE '%Men\'s Health %' --escaped quote AND…
getmizanur
  • 515
  • 1
  • 11
  • 18
0
votes
1 answer

How to use DoctrineORMModule different credentials for cli and application?

I am using the DoctrineORMModule along with my ZendFramework/Laminas Application. So far everything works fine but I'd like to limit the user rights for the db-user in my MySQL database and use the root-user for my doctrine-migrations only. What's…
sfass
  • 3
  • 1
0
votes
0 answers

phpunit code coverage not working in a module of my project

I have the directories: ProjectName/Module/Application and ProjectName/Module/MyApi I used Laminas. And when I run in cmd: ./vendor/bin/phpunit.bat --coverage-html=test/reports --whitelist=module\Application\src\* the response is: PHPUnit…
0
votes
1 answer

adding i18n functionality in laminas

New to Laminas, I am following the tutorial "Getting started: A skeleton application". Close to the end, I am figuring out that I probably answered "no" to the install question about i18n and here I am with a Fatal error: Uncaught…
kart-able
  • 106
  • 1
  • 13
0
votes
1 answer

Mezzio skeleton application on Centos 8

I try to run a Mezzio application on my server I do the following steps : - Create a Mezzio project composer create-project mezzio/mezzio-skeleton symphonie I choose modular application, fast router, service manager, plates renderer and Whoops I…
shishi
  • 28
  • 4
-1
votes
1 answer

PHP redirect with authorization header

I have two applications APP_A and APP_B. While logged into APP_A I wish to provide a redirect (or equivalent) to APP_B that would include a header authorization token. APP_B will then take that token and automatically log in the user without them…
DaveMac001
  • 155
  • 3
  • 13
1 2 3
10
11