Zend DB MySQL not insert in certain tables

We have the same code running on different MySQL databases, saying db1, db2...and etc. We insert records into table1 for every db, like db1.table1, db2.table2...etc. The same piece of code written in Zend DB Adapter can insert every table1 in every ...
more »

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

Zend framework 2 sending email

I am sending emails to different users but its giving me this error, I don't know what that means $mail = new Message(); $mail->setFrom('no-reply@example.com', "Example.com"); $mail->setBody($htmlString); $mail->add...
more »

2017-06-19 21:06 (0) Answers

ZF3 translate complete html

I have following problem.I want to translate my website in different languages. Lets say i want to translate my page in english and german. I know how to translate single parts of an document by using translate ViewHelper. I know how to individualiz...
more »

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

ZF2 routing in links not working correctly

I'm working on a Zend Framework 2 application for work in which I can't seem to route correctly or know where to route it. I have an Hostname => webapp.foo-bar.com. We decided to add a Subhost => /app/ to the end and the name of this app is called =...
more »

2017-06-16 15:06 (3) Answers

Unable to properly render partial view zend

I am new to zend framework and trying to upload three images using ajax, once the ajax request success, the partial view not loading any script and style etc. This is the preview that I am getting after submitting form: enter image description here ...
more »

2017-06-16 07:06 (0) Answers

ZF3 executing sql-commands

I have an for the moment just to try an easy sql statement. $sql = new Sql($this->db); $select=new \Zend\Db\Sql\Select(); $select->from('t_project'); $statement = $sql->prepareStatementForSqlObject($select); $project...
more »

2017-06-15 15:06 (0) Answers

Zend Framework 3 Unit Testing

I'm using Zend Framework 3.0.3 and try to testing my application with authentication system and have error reports below: Application\Controller\IndexControllerTest::testIndexActionCanBeAccessed session_regenerate_id(): Cannot regenerate sessio...
more »

2017-06-14 15:06 (0) Answers

How to get dbadapter out of the servicemanager

I try to get the databaseadapter with the following statement: $dbAdapter = $this->getServiceLocator()->get('db'); I get an error "A plugin by the name "getServiceLocator" was not found in the plugin manager Zend\Mvc\Controller\PluginManag...
more »

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

Magento 2 custom product attribute won't save

I am writing a magento 2 module - am trying to get it to add a custom attribute to every product. My "Setup>InstallData.php" file is successfully adding the attribute to the "eav_attribute" table when installing the module, and the adminhtml is rende...
more »

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

Upload csv file from zend to nodejs server

I'm trying to upload a CSV file from the Zend (1) framework using curl_setopt_array to NodeJs server API using connect-multiparty. When i upload the file i get this error : Error: stream ended unexpectedly at Form. (/nodeapps/dynamicdispla...
more »

2017-06-13 15:06 (0) Answers

Doctrine2 QueryBuilder Join

So, I'm new to doctrine, and I'm trying to do a basic joint, but I guess I'm missing something, on my entities or I don't know for sure. Doctrine Repository: $queryBuilder = $this->createQueryBuilder() ->select('c.*, a.*'...
more »

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

Calling Class property using variables in Zend

I am creating partials where an items property names are passed from an array to access the values of those properties but I receive an error saying Undefined property of Namespace\Entity::$variable when defining $property->{$variable}. How would...
more »

2017-06-12 19:06 (1) Answers

About the engineer Zend test

Im interested in taking the Zend PHP engineer test. I want to know which book is advisable to study from. Please dont sugest me the study guide offered by Zend because I already have it. What I want to know is which PHP 7 book is advisable? Also I w...
more »

2017-06-09 16:06 (0) Answers

PHP gettext() not translating strings

I am trying to implement gettext() for building a multi-lingual PHP web app. Here's what I did: Installed GNU gettext package in C:\Program Files Installed POedit Checked my php.ini file, and gettext was enabled extension=php_gettext.dll Check...
more »

2017-06-09 14:06 (0) Answers

Zend Error In MySQL Connection Netbeans

I have a problem after revert my three code files from local history supported by Netbeans, which I did by copy everything from pre-modified file to current file. But, when I run it, the page showed white screen with this error warning : object(Zend...
more »

2017-06-09 06:06 (0) Answers

Zend_Mail Contact Form - missing file

I noticed this code Zend_Mail. It has to be missing a file: include_once("Zend/Mail.php"); $mail = new Zend_Mail(); $mail->setFrom("noreply@garage.com", "Garage"); $mail->setReplyTo($email,$name); $mail->addTo("@gmail.com"); $mail->addT...
more »

2017-06-09 05:06 (0) Answers

Zend framework 1.12 validator error

I'm getting an error with the StringLength validator in Zend Framework 1.12. The error is: plugin by name StringLength was not found in the registry;used paths:Zend_Validate_:Zend/Validate/ My form is: <?php class Application_Form_Public...
more »

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