Featured Post

How to copy many files with certain mask under Linux?

This time I would like to share solution for the problem described in the title of this post: how to copy many files with certain mask under the Linux Operating System. Background Let’s say I have 200 files with following types: <number>_400x300.<extension> – e.g. 534_400x300.jpeg, <number>_300x90.<extension>...

Read More

SubForms example in Zend Framework 1.x

Posted by evolic | Posted in Programming, Web development | Posted on 22-04-2013

Tags: , , , , , , , , ,

0

Today I would like to write something about SubForms available in Zend Framework 1.x.
Currently we have Zend Framework 2 released, and there is some similar solution called Form Collections with completely new approach.

I will take care that new feature from Zend Framework 2 in the close future, but in this article I would like to share some good looking and good working example of using SubForms from Zend Framework 1.x

SubForm example page in HTML5

SubForm example page in HTML5

Currently I am working on the project made with Zend Framework 1.x and I think that real example could be useful to people, who want to learn something about Zend_Form_SubForm.

Unit testing in Zend Framework 2

Posted by Tomasz Kuter | Posted in Programming, Web development | Posted on 07-04-2013

Tags: , , , , , , , , ,

3

Overview

Today I would like to focus on the unit testing in applications made with Zend Framework 2 and Doctrine 2 ORM. Sample unit tests were included with Zend Framework 1.x and they are also attached to Zend Framework 2 Tutorial.

Important is, that we have two approaches of testing controllers for the latest version of the framework:

  • first, based on class PHPUnit_Framework_TestCase,
  • and the second, which uses AbstractHttpControllerTestCase class.