Getting started with Doctrine 2 in ZF2


Using Doctrine as an ORM to persist your data significantly lowers your overhead in managing your database. However, if you're just getting started with Doctrine, you'll have to invest in moderate time to overcome learning curve. Here is some of not so obvious tricks you'll have to learn as a beginner to utilize Doctring.

Q. How do you install ZF2 doctrine modules?

Posted By admin read more

ZF2: Configure a layout for each module with EdpModuleLayouts


I have newly acquainted with ZF2, and played with EdpModuleLayouts to configure different layout for each module. For someone with very limited exposure with ZF2, the instruction provided in EdpModuleLayouts is not quite enough. I've spent about an hour to make this simple thing work, and sharing my experience with others who may run into similar challenge.

Here is what you'll have to do to make EdpModuleLayouts work:

1. Install EdpModuleLayouts module in the "vendor" folder.

Posted By admin read more

ZF2: ZF1 like URL Routing


ZF2 introduces a new routing for the framework which is similar to ZF1, but has slightly different semantics. The skeleton application ships with a default Application level router which takes matching controller/action to /application/controller/action URI. If you wish to keep it backward compatible with ZF1 type of matching, you may want to make the following changes to the module/Application/config/module.config.php file as below:

Posted By admin read more

How to install Zend Framework 2 skeleton application?


For anyone getting started with Zend Framework 2 (or ZF2), the best way to get up and running quick is by installing the Zend Skeleton Application available on github. Here is the quick and easy way to get the skeleton application installed on Linux machine. You'll install the skeleton application first, and then we'll install ZF2.

1. Change directory to where you want to install ZF2 Skeleton Application.

Posted By admin read more

How to add attachment with the Zend_Mail?


Files can be attached to an email using Zend_Mail->createAttachment() method. The createAttachment() method requires a content of the attachment, and 3 optional arguments. Please note that it takes file content as an argument, not the name of the file.

Posted By admin read more

Zend Framework 1 Overview


Developing a PHP application requires domain knowledge, software engineering, discipline and time. We rarely write applications from scratch as there are freely available application frameworks that we can take advantage of. For PHP programming language, there are more than a dozen "popular" frameworks to choose from, and picking the right framework for your application is not a mundane task. I have been working as an IT consultants for many years, and Zend Framework is the one being discussed frequently.

Posted By admin read more
Subscribe to RSS - zend