Questions tagged as 'zend-framework-2'

1
answer

How to populate a select or checkbox dynamically using annotations in the Zend Form ZF 2?

I learned to do this with fixed values, eg: @Annotation\Type("Zend\Form\Element\Select") @Annotation\Options({"label":"Cidade"}) @Annotation\Attributes({"options":{"1":"São Paulo","2":"Rio de Janeiro"}}) However, how do I put these options...
asked by 13.07.2015 / 21:40
1
answer

PHP - Bank Reconciliation

I'm developing an application that will need banking reconciliation functionality. For this, the standard cnab 400 should be used for Banco do Brasil. I need to generate the batch file and handle the return file. However, I did not assimilate...
asked by 11.06.2015 / 22:05
1
answer

Access-Control-Allow-Origin: * does not work for all my domains

I have four applications that use the same API, and Access-Control-Allow-Origin: * does not account for all, the only application that does not work is the one I'm using Zend Framework 2 and Symfony, I do not know if I could have anything...
asked by 11.02.2016 / 16:13
1
answer

Update a view of zf2 every 1s through jquery / ajax

I have a table as figure below, I need it to update every 1s, but I have no idea how to do it. Iusedahtml5tag,butitupdateseverything,Ijustwanttoupdateonlythetable.MyView <?php $datenull = '01/01/0001 00:01'; $linha = 1; ?> <met...
asked by 17.01.2017 / 14:34
1
answer

Zend Framework - Where are query queries?

I have an application using Zend Framework, in structure MVC, I want to know where the query queries are made to the bank, I'm a little lost because I've never worked with Zend. In my model I instantiate, for example: class Cursos extends Zend...
asked by 31.10.2016 / 01:29
2
answers

Directory Emphasis

I'm having directory localization problem when it involves a file or folder with accent. Here's the snippet below where I try to capture the size of the file: $filepath = "$novocaminho".utf8_encode($arquivo); $tamanho = filesize("$filepath");...
asked by 17.08.2017 / 19:48
1
answer

How does Flash Messages work in ZF 2?

I'm working with the Zend Framework 2.0 < />> I noticed that it has a helper to handle error messages, called "flashMessages", what I did not understand straight away is if it captures this by session, or by rendering the view, I'm breaking my...
asked by 05.01.2016 / 21:14
0
answers

A plugin by the name "getServiceLocator" was not found in the plugin manager Zend \ Mvc \ Controller \ PluginManager

I recently started learning Zend Framework2 with AngularJS through a course of the School of Net. Given the course year, if I'm not mistaken it's 2013, some things have changed in both frameworks. So I encountered a problem using the following c...
asked by 01.09.2016 / 20:09
1
answer

Doubt about Zend Framework

I developed an application in version 2.5 of ZF2 , and I had a question if I did not upgrade to ZF3 version     
asked by 04.10.2016 / 15:23
0
answers

ZFTool does not work, returns the application html [Zend Framework]

Hello, I'm trying to use zftools (terminal) to create modules for Zend but unlike expected it would be an error message or success zf.php prints on the screen the HTML of the application, as if I were in the browser . Commands used:    comp...
asked by 23.07.2016 / 20:28