Questions tagged as 'zend-framework-2'

0
answers

How to do a beginTransaction in the Zend framework?

public function alterar($objDadosSindicato) { $this->conexao->beginTransaction(); try { $alterouSindicato = $this->repositorioDadosSindicato->alterar($objDadosSindicato);...
asked by 10.12.2018 / 21:10
0
answers

PHPUnit testing class without constructor

I'm developing unit tests on a project and I came across a class that does not contain constructor. You may wonder, "How does this object exist then?" Well, in another system, this object is generated and saved in a database, so in the sys...
asked by 20.04.2018 / 21:49
1
answer

ZF2 EmailAdress Validator accepting ç

Hello, I'm doing email validation on a ZF2 system using Zend \ Validator \ EmailAdress and passing an email as teste@çço.com is considered valid, when in fact this is not valid. Does anyone know how to proceed? Piece of code: $emai...
asked by 03.04.2018 / 22:16
0
answers

Zend Frameworker 2 and Service Worker

Hello, I'm trying to put a service worker in my zf2 project and I'm not getting it. Anyone who works with zf2 knows that the entire project runs from the public folder and so that the public name does not appear in the url a configuration is made...
asked by 22.01.2018 / 13:40
1
answer

How to get aws service with aws-sfk-php-zf2 v 2.0. *?

I was using aws / aws-sdk-php-zf2 1.2. * and had to update to 2.0. * and now the AWS SDK is v3. Before, I called the service with the code: $this->s3 = $serviceLocator->get('aws')->get('s3'); But now it returns this error:   ...
asked by 29.11.2017 / 15:01
0
answers

The pgsql driver is not currently installed

I'm using WampServer with Postgres installed on my local machine and when I go to the application the following error occurs:    Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with message 'The pgsql driver is not c...
asked by 06.11.2017 / 16:35
0
answers

Zend Framework 2 My Acl plugin authentication returns a strange error

I have a project based on Zend Framework 2 and the MyAcl plugin; My operating system is Ubuntu 17.04; php version: 7.1.11. I can not access the project home page, an error occurs during authentication, and the MyAcl plugin driver page is not int...
asked by 03.11.2017 / 13:15
1
answer

Error creating Module zend framework

I created a new module in the zend, but it gives as 404 error. modules.config.php return [ 'Zend\Router', 'Zend\Validator', 'Application', 'Album' <-- módulo que foi criado. ]; module.config.php namespace Album;...
asked by 10.10.2017 / 15:27
1
answer

Pass value per link

I need to send a value through a link to another page: <li><a href="" onclick="getPasta()" id="icons"><?php echo $this->translate('Download');?></a></li> I tried to use this code for upload: <script typ...
asked by 21.08.2017 / 21:55
2
answers

Delay in loading some records

Hello! We work with SugarCrm. Who does not know Sugarcrm is a CRM made in mysql and php that uses the Zend framework. We used the opensource version and did some customization. I'm having trouble where some customer records take too long to l...
asked by 18.05.2017 / 14:18