Ioncube doesn't want to load the domain

A friend of mine has a website which is encrypted with ioncube, and I wanted to move his files to another server after I downloaded the files his domain doesn't work it says something like "The domain is registered by another customer" I don't know i...
more »

2017-03-16 22:03 (0) Answers

Writing tests for controllers with forms

Ever since I started using Zend Framework 3, I had problems with testing my controllers. I'm trying to test my controllers with PhpUnit 5.7 and my controllers depend on Zend Form, which is hydrated with Doctrine's DoctrineObject. I'm trying to put th...
more »

2017-03-16 11:03 (0) Answers

Zend 2: Route constraints log specific error

I try to log if user type wrong url parameter for a route with 'constraints' => array('personalnumber' => '[0-9]*') $error = $e->getError(); if ($error == Application::ERROR_ROUTER_NO_MATCH) { $url = $e->getRequest()->getUriStr...
more »

2017-03-15 14:03 (1) Answers

zend framework 2 unit test mock injected property

Can't figure out how to mock the injected property of controller. I need to mock from WriteController subscriberService $this->subscriberService here is my controller factory: class WriteControllerFactory implements FactoryInterface { /** * Ret...
more »

2017-03-14 21:03 (0) Answers

Session storage in zend framework 2

i have been learning zend for a while now and today i encountered a problem related to session storage. I would like to insert into my session(db_table) the user in session after the validation and store the "session" through modules so that, my ind...
more »

2017-03-14 19:03 (0) Answers

Zend Soap server example

I'm trying to setup soap server by following https://framework.zend.com/blog/2017-01-24-zend-soap-server.html tutorial. My corresponding changes <?php namespace Soap\Controller; use Soap\Model; use Zend\Soap\AutoDiscover as WsdlAutoDiscover; ...
more »

2017-03-14 11:03 (0) Answers

Send mail via amazon ses with Laravel

I try to send mail via Laravel with amazon SES from custom sender addresses. When I try to send it, I have this error: exception 'Aws\Ses\Exception\SesException' with message 'Error executing "SendRawEmail" on "https://email.us-east-1.amazonaws.c...
more »

2017-03-13 11:03 (1) Answers

Zend framework 3 - DOMPDF

I'm trying to use DOMPDF module with ZF 3. I've installed it with composer composer require dino/dompdf-module and looks ok. Then i've imported the dompdf module to my order controller use DOMPDFModule\View\Model\PdfModel; After that, i've cre...
more »

2017-03-09 21:03 (0) Answers

Zend Framwork 2 Soap Client

I am sending data using the Zend Soap Client but I am getting the following error. Warning: SoapClient::__doRequest(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? I have read that if I go...
more »

2017-03-09 17:03 (0) Answers

When case update query in zend framework

Here is my mysql query UPDATE uss20_prj_avunea.tbl_loc_images SET img_sortorder = CASE img_id WHEN 210 THEN 1 WHEN 211 THEN 2 WHEN 67 THEN 3 WHEN 62 THEN 4 WHEN 207 THEN 5 WHEN 208 THEN 6 WHEN 209 THEN 7 END WHERE img_id IN ( 210, 211, 67, 62, 207,...
more »

2017-03-09 05:03 (2) Answers

Empty attachment on mails send through zend mail

I am using Zend framework 1.12. Basically, I am trying to send attachments (images, pdf) from one of my site using Zend mail. The mail is sent and I received it in a perfect way. But the problem there is that the attachments are empty. This is my cod...
more »

2017-03-07 08:03 (2) Answers

ODBC driver with Zend Server

I just installed the Zend Server on my system and I'm trying to test my database connections. I prefer using PDO to connect my databases. MySQL connection works very well, but when I'm trying to connect MS SQL server I got an error. Connection t...
more »

2017-03-06 14:03 (1) Answers

Zend Framework 2 call TableGateway in Service

I'm new to ZF2. After few days of trying to figure out how all this stuff should work I was unable to figure out how should I call TableGateway Model from Service. So I have Controller: class SubscriberController extends AbstractActionController { ...
more »

2017-03-05 14:03 (1) Answers