Lucene match in one of two fields

So I have the following indexed data in Lucene Title: FULL STACK GURU ONLY Description: test Now If I do the following query +title:We need a full stack guru+description:test It doesn't return anything, but If I do the following it works ...
more »

2017-04-19 13:04 (0) Answers

Xdebug with VS Code on ubuntu not working

I am trying to debug php using xdebug on ubuntu 16.04 with Visual Studio code. I installed xdebug as per the instructions from the following site-Xdebug wizard. In the xampp the php version is shown as PHP Version 5.5.6 but when i run the command php...
more »

2017-04-19 08:04 (0) Answers

Convert raw sql to zend or socialengine based

How can I convert this query to zend or social-engine based? Because zend has lots of complexity and is difficult to get what is wanted. SELECT u.user_id,, u.username, u.likes + a.likes as `total_likes` FROM (SELECT SUM(activitie...
more »

2017-04-18 10:04 (0) Answers

Zend framework error in magento 2

I am developing ecommerce website in magento 2. I got error when I am adding products from home page: Zend\Uri\Exception\InvalidUriException: URI is not valid and cannot be converted into a string in /var/www/html/voylite/vendor/zendframework...
more »

2017-04-18 10:04 (1) Answers

Zend framework - get config inside controller

I'm using this to build zend application. I'm trying to get the config data I put inside the config/autoload/global.php and config/local.php.dist with the bottom line but it returns Zend\Servic...
more »

2017-04-17 21:04 (2) Answers

Charset inside a module view

I have project in Zend Framework v.3 that loads the layout.phtml file (with the menu and breadcrumbs) where the charset defined and working is UTF-8. When I open a module view like login.phtml (that uses the layout.phtml) the charset UTF-8 doesn't w...
more »

2017-04-17 13:04 (0) Answers

How to Iterate uploaded image files

I want to use foreach() to move image files into a folder and print imageupload name, tmp_name and so on. I am working on zend. Input array: Array ( [imageUpload] => Array ( [name] => P_20170224_134956_BF.jpg ...
more »

2017-04-17 11:04 (1) Answers

Error calling Zend Filter ToInt with PHP 7

I have the following Model class: <?php namespace Tropa\Model; use Zend\InputFilter\Factory as InputFactory; use Zend\InputFilter\InputFilter; use Zend\InputFilter\InputFilterAwareInterface; class Setor { public $codigo; public $nome; ...
more »

2017-04-15 18:04 (1) Answers

Zend 1 - direct link for file without redirect

I'm using Zend 1.12 for a project and I want to display PDF in the content of the page. Solutions exist with embed, object or the library PDF.js but I always have the same problem : I need to write the path to the file. And the problem is that the l...
more »

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

A good gitignore for zend 1

We use an old version of zend (v1.x). This is our root directory : application/ error_log images/ index.php js library/ styles/ Do you know a good gitignore ? Thanks ...
more »

2017-04-13 21:04 (1) Answers

jQuery Steps - custom validation on button click

I'm struggling with jquery steps wizard - Basically, my app is built on Zend Framework which do also a form validation via ajax. In previous version, before I decided to use jquery steps plugin, it looked like that: ...
more »

2017-04-13 16:04 (1) Answers

Zend: UTF-8 encoding

My job is to migrate our current website to production. (I'm not the developer of the zend app). It's a french app, so we use a lot of french characters like "é" Our database collapse is utf8_bin (all). If I use a form for uploading data (for exam...
more »

2017-04-13 03:04 (0) Answers

How to mask the URL with htaccess in zend 2

I have a project, it's done in zend. After user registration, confirmation email will send to users email. Inside email there is a link to click for confirm the user registration.
more »

2017-04-12 10:04 (0) Answers with Socialengine 4

I want to pass through at minimum the username and email of anyone who connects using our account. What I cannot figure out is how to pull the username and email address from the current user. I have put the following code under Settings-...
more »

2017-04-11 18:04 (0) Answers

Zend Framework 1 Service Layer

I know there is a post regarding ZF1 services which is closed but the links are dead. So my question to you is how to write a zend service for zf1, I saw Zend_Service_Abstract but is there any good information on the web about this? How do you initi...
more »

2017-04-11 15:04 (1) Answers

Apache 403 forbidden: File name too long

I am new to apache as well as programming and I am facing a strange error with my apache 2 on macOS Sierra, i sometimes get 403 error when running web services via GET but about 80% of the requests are accepted, below is a log from my apache error lo...
more »

2017-04-11 10:04 (0) Answers

Zend(ZF1) - how to clear cache

I have updated the app.ini file but somewhere someone wrote this code to have used cache. How can I clear the cache? static $configuration; if (!$configuration) { if (Zend_Registry::isRegistered("configuration")) { $conf...
more »

2017-04-10 17:04 (0) Answers

How to Unittest a Factory with dependencies

How can I test my factory with the entity manager? I have an error because I need to make my container return an instance of a class created from doctrine ( I do not even know what there is returned). How can I create a test that I can make pass? /...
more »

2017-04-08 13:04 (1) Answers

How to use OAuth2 in ZF2

I'm trying to implement OAuth2 for HTTP Requests to my API, but i can't make it posibly, and I don't wanna do that via Buttons or Page where you 'clicking' some buttons and you got the access token, I need that via cURL and send the values required f...
more »

2017-04-07 18:04 (0) Answers

Zend version 1.8.4 not rendering php code

Zend framework 1.8.4 won't render a php code in same URL. im running php version 5.3.3 and CentOS release 6.8 (Final) environment. i already check the php version compatibility and .htaccess found zendframework documentation. im open for suggestio...
more »

2017-04-05 12:04 (0) Answers