Zend select box Default Value Select

Here is my code. I need AM to be selected by default. Hence i have set AM in value. but not working.I am using zend2. $format = array('AM'=>'AM','PM'=>'PM'); $this->add(array( 'type' => 'Zend\Form\Element\Select', ...
more »

2017-02-14 07:02 (1) Answers

SSL Redirection error ZEND framework

Please help me. I have a website build on zend framework and i need to set https protocol. I redirected form .htacces and the website not loading my resources(css,js and images) I think is something with basseURI(). Haw can i change all to https. I ...
more »

2017-02-13 23:02 (0) Answers

Exception in Zend_Ldap when searching for a CN

I am experiencing a weird issue with Zend_Ldap (Zend_Framework 1.12) and PHP 5.6.24 on Windows 2012 R2 when searching for a CN. Basically, I send an LDAP search for the DN: CN=ABUsers,CN=Users,DC=escenterprise,DC=net after successfully binding wit...
more »

2017-02-13 18:02 (1) Answers

Get rule list in zend acl

I'm working with zend framework 2. In there I can Get resource list of acl as getResources(); like this method how to get rule list in the acl in zend framework 2? ...
more »

2017-02-13 07:02 (1) Answers

PHPUnit tests and Doctrine, too many connections

I'm facing problems with "too many connections" for PHPUnit tests for ZF3 and Doctrine, because I'm executing ~200 tests per PHPUnit execution. I've already found some questions and answers on stack overflow but non of these work. My setup: ZF2/ZF3,...
more »

2017-02-12 14:02 (1) Answers

post parameter not being passed zend framework 2

I've run into a bit of a problem with passing post parameters to a controller action via a ajax call. I'm not sure why it is doing it, because the other ajax calls perform as intended. The response I'm getting is as follows: Notice: Undefined inde...
more »

2017-02-12 02:02 (1) Answers

Zend Guard Loader Vs. website migration

I'm in the following situation with one website not developed by me but by someone else I don't have contact with: I'm migrating the website from [Server 1] to [Server 2]. Right now on [Server 1] is working properly. There is one file (just one: in...
more »

2017-02-11 21:02 (0) Answers

Zend SELECT->WHERE using LIKE on each key of Array

I'm not sure how to put this in English, so here it is in SQL: SELECT "track_sub_genre".* FROM "track_sub_genre" WHERE "track_sub_genre"."name" LIKE '%rock punk%' OR ("track_sub_genre"."name" LIKE '%rock%' AND "track_sub_genre"."name" LIKE '%punk%...
more »

2017-02-10 11:02 (1) Answers

Array declaration of size one

Traversing the 'zval' structure in the source code of Zend , I saw this: // zend_types.h struct _zend_string { zend_refcounted_h gc; zend_ulong h; /* hash value */ size_t len; char val[1]; };...
more »

2017-02-10 09:02 (1) Answers

Zend-framework Loading mpdf in a Project

I have a project in zend 1.12 and I tried to use composer and then use mpdf, but it did not work, as it always goes to controller, and I am new to Zend-framework. [09-Feb-2017 00:32:28 Europe/Kiev] PHP Warning: require_once(C:\wamp\www\Avala\applic...
more »

2017-02-09 00:02 (0) Answers

Zend framework 2-Unit testing session data

In some of my actions, I need session data to perform certain queries, like UserId, projecId and unit testing. How do i get the session data, I have no idea, how sessions are stored by browsers. Somehow I can changed Zend framework base session class...
more »

2017-02-08 16:02 (0) Answers

zend form is not being shown

Hi I'm developing a PHP app and I'm using the Zend Framework and I'm new to it. My problem is that I'm not able to print the form in the view. I've a file that contain the form, a controller that passes the title to the view and the view. The view'...
more »

2017-02-08 14:02 (0) Answers

Register custom Filter via Facotry

I am trying to register my custom filter and use in getInputFilter() method, but constantly getting the error: A plugin by the name "myCustomFilter" was not found in the plugin manager ZendFilterFilterPluginManager $inputFilter->add([ ...
more »

2017-02-07 16:02 (1) Answers

HTTP Basic Authentification via DB with Apigility

I've been trying to enable HTTP Basic Authentification, using the informations stores in my PSQL DB instead of the htpasswd file, but I can't seem to find a way to do so in Apigility. As far as I've understand, I'll need to create an adapter which i...
more »

2017-02-05 16:02 (0) Answers