zf3 __construct() not working

I've created a module with name Commerce in zend 3 which is working fine. Now when I inject a dependency through __construct() it throws error Too few arguments to function Commerce\Controller\IndexController::__construct(), 0 passed in /var...
more »

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

Email sending errors in zend framework 3

I am sending mail from my zf3 application. for sending email, i have config/autoload/local.php file config as below - 'email' => array( 'host' => 'smtp.gmail.com', 'port' => 587, 'connection_config' => array( ...
more »

2017-09-05 23:09 (1) Answers

get zend FlashMessenger message as string

i have code in controller as below: public function indexAction(){ $this->flashMessenger()->addMessage('hi'); } In view page : $messages = $this->flashMessenger()->getMessages(); foreach($messages as $message) { ...
more »

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

ZF3: Run validator with empty value

I have a Zend Form situation with a checkbox and one select (multiselect). The multiselect is optional, but required when the checkbox is checked. I have written a custom validator to take care of this. The problem is making sure the validator is exe...
more »

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

difference on production system

I have a ZF3 project with a controller which opens excel-files and compares them with an template which will be openened, too. On my development notebook (xampp) everything works fine, at my production system (ubuntu) the phpspreadsheet causes error...
more »

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

extend functionality of Zend_Form_Element

I'm still wondering when and where I have to register new classes and how to extend old ones. For example I found a nice code which extends Zend_Form_Element_Select so that I can use it in each form and pass my database specifications to. Because I ...
more »

2017-07-26 18:07 (1) Answers

ZF3 Upgrade unable to render Template

I'm upgrading from ZF2 to ZF3 and this goes quite well so far except the following issue when I want to load my application: ERROR Zend\View\Renderer\PhpRenderer::render: Unable to render template "error"; resolver could not resolve to a file #0 /h...
more »

2017-07-24 14:07 (0) Answers

ZF2 load different view based on domain

I have an application where I want to load some different views based on a different domain using the existing modules in my app, how can I accomplish that in my routes? I only want to change my layout so my vriews should be involved only. ...
more »

2017-07-21 14:07 (2) Answers

ZF - Doctrine2 Cannot Retrieve Repository

whats this wrong with this? I'm new in zend framework........................................................................................................................... this is my folder struct UserControllerFactory.php <?php nam...
more »

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

ZF3 Development Mode VS Production Mode

I use ZF3 and code in the development mode. I configured it like the tutorial suggests: composer development-enable So everything works fine if this mode is enabled. If I disable it I get a database connection error, like this one: Connect Err...
more »

2017-07-17 10:07 (2) Answers

rendering layout on the production server

My productionserver is not able to render my loginlayout. On my development system everything works fine. Here comes the error on the production website: Fatal error: Uncaught Zend\View\Exception\RuntimeException: Zend\View\Renderer\PhpRenderer:...
more »

2017-07-12 17:07 (2) Answers

Inputfilter for fileupload, basic usage

Now I'm a bit more into this ZF3 stuff. I could (with some help) implement nearly everything I wanted. To dive in the, for me new version, I developed a test project. Some questions are still unanswered and I didn't find usable explanations. My new...
more »

2017-07-10 20:07 (1) Answers

how to get several rows out of my model

This is again an understanding issue, any explanation is appreciated: I before had the issue to show a foreignkey table in my view, that now works, it looks like follows: That's quite what I wanted, but: I only get the first row, but there are of...
more »

2017-07-06 11:07 (1) Answers

link foreignkey columns in html view

I'm still searching for an easy possibility to show the string in my htmlview instead of my foreignkey values. We are talking about ZF3 Here is a screenshot: As you can see are for example the columns companyid and usergroup foreignkey values. M...
more »

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

ZF3 logout after some inactive session

How to auto logout session after some inactive? I want this functionality in zend framework 3.If anyone have idea then let me inform please.Currently my application logout within 5 minutes with the used of zend skeleton.But I want session expiration ...
more »

2017-07-03 06:07 (1) Answers

passing two tableadaptercolletions to view

I'm still trying to get as "hierarchical" view the recordssets of a second tableadapter collection. In my controlleraction I passed a second argument to the view: return new ViewModel([ 'projects' => $this->projectTable->fetchA...
more »

2017-06-30 09:06 (1) Answers

pass a keyvalue to my innerloop

In my view I want to show 2 recordsets, like this: <?php //var_dump(get_object_vars($projects)); foreach ($projects as $project) : //var_dump(get_object_vars($project)); ?> <tr> <td><?= $project['Projectname']?>...
more »

2017-06-29 11:06 (0) Answers

column missing in exchangearray

I'm missing a column in my exchangeArray. It is the column with the filename, here a snippet of my controller add action: if ($form->isValid()) { $data = $form->getData(); // Upload path ...
more »

2017-06-29 10:06 (0) Answers

Error with Clousure in zend framework cache

I have problem with Zend Framework cache - this error shows when I put my app on production. Fatal error: Uncaught Error: Call to undefined method Closure::__set_state() in /home/users/devmonitoring/data/cache/module-config-cache.application.config....
more »

2017-06-28 13:06 (1) Answers

class Zend_Date not found

I googled a lot until now, but I couldn't find anything that works. I need to save a proper datetime value in my mySQL database, so I tried as used in ZF1 this one: $date = new Zend_Date(); echo $date->toString('YYYY-MM-dd HH:mm:ss'); I got th...
more »

2017-06-28 11:06 (2) Answers

routing after authentication doesn't work properly

I probably have an understanding issue how the routing works. I tried a bit with zend-authentication, you can see the controllercode below. If the authentication is valide I want a routing to another controller index action. Should be quite simple, ...
more »

2017-06-28 09:06 (1) Answers