designing4u.de Yet Another Coding Blog

29Jul/110

Conditional validation of shipping address using Zend sub forms

Zend Framework documentation gives you an excellent example on how to use sub forms. Sub forms let you split the logic of your application into smaller parts, validate it on demand and after collecting all the information validate the whole entity. Pretty cool huh? Lately I was implementing a shopping cart. In the last part of the check out process the user has to provide the billing address and shipping address. Usually they are the same but sometimes they differ. Here is how I solved the conditional validation of the form fields for orders where shipping address differs.

15Jul/110

Ubuntu/Debian server with public/private key authentication, PHP-CGI, Lighttpd and MySQL for Zend Framework

I know there are many tutorials which explain how to set up a server in VPS environment. This is probably just another one and it won't teach you anything new. I just want to use this post as a reference, because lately I had to do it couple times for my customers. After completing the steps below you will have a server ready to run Zend Framework backed up by MySQL server. Let's dig in.

13Sep/092

Accessing Google Analytics API with Zend Framework

After a long time Google finally released the API which allows the read access to the Google Analytics accounts. Since I needed it to perform some analytics and included it into one of my projects written with Zend Framework. Zend framework provides a massive library collection which you can use to access Google services, but unfortunately it does not provide the interface for accessing the analytics yet. Therefore I decided to share the code.

5Sep/091

SMPT authentication with Zend_Mail

It's been a long time since I wrote my last post. Well, I was busy working and getting familiar with Zend Framework. Since the Zend Framework documentation is not really helpful when it comes to send emails using SMTP, I decided I show you how I accomplished that.