Upgrading PHP from 5.3 to 7.0 on Zend Framework

I'm joining a new team. Their current setup is on the Zend Framework 2.3.0 running on PHP 5.3.10. One of their complaints is speed so I'd like to switch gears to PHP 7.0.X Is this possible to do safely? If I upgrade to 7.0.X would I break anything wi...
more »

2017-01-13 09:01 (0) Answers

How to populate a Select type input php from Json

I'm building a zend framework project and I'm using php for the first time so my apolagies in advance if the question is too dumb or if it was already answered but I didnt find it. I'm trying to populate a select type input (dropdown list) with dat...
more »

2017-01-12 05:01 (2) Answers

redirect for only admin module

I have the following code inside my Admin Module.php public function onBootstrap(MvcEvent $e) { $application = $e->getApplication(); $em = $application->getEventManager(); if(!SystemUtils::isApiRequest()){ $em->attach(\Z...
more »

2017-01-12 03:01 (2) Answers

Database show categories by alphabetical order

I am showing on a page categories, when the person click on it, it shows the skills. Display is working. How can I sort the categories and then skills by alphabetical order? Categories and skills are coming from my database. <?php foreach($this...
more »

2017-01-10 23:01 (0) Answers

ZF3 - Zend Mail Exception - Could not open socket

I have the class below. It works well stand-alone (without zend skeleton) but when I try to put it in a Controller of the zend skeleton I get an error. In same server it works well without zend MVC, whence do not seem ssl or tsl configuration. Seems ...
more »

2017-01-06 20:01 (0) Answers

error in zend session database for php7

My application need to use database instead of file for the session management. My Application is based on Zend Framework 1.12.17, php 5.6.25 and actualy on wampserver That is my config.ini resources.session.use_only_cookies = true resources.sessio...
more »

2017-01-05 18:01 (1) Answers