Reusable “generic” actions in Zend Framework

Tags:

Sometimes you will need nearly the same functionality in many actions. This can lead to unnecessary code duplication if you aren’t careful, and there’s been a couple of occasions on #zftalk, where people have been asking for a good practice to avoid this. There are several ways to deal with this, such as moving the code into a separate function, …

Good habits I learnt from Django

Tags:

Django has various good features I’ve previously mentioned. While they can’t be taken out and applied to other languages like PHP right away, it also has some nice ways of doing things that can be taken and used elsewhere. Let’s look at some good habits I took from Django and started using in PHP, that could benefit you too.

Autogenerating forms from Doctrine models

Tags:

In a previous post I mentioned how Django’s model forms are awesome. I really like the idea of being able to generate forms automatically from models – I mean the models already should contain most of the data you’d need: the fields, field types and how they will be stored. Since I was already quite familiar with Doctrine’s internals, I …

Django = Awesome

Tags:

So in the lack of anything “useful” to post, and in the attemps to at least post something interesting, I shall dedicate this post to talking about what makes Django such an awesome framework! I’m going to compare it to Zend Framework, as it’s the framework I’m most familiar with.

Django and Python

Tags:

I’ve thought it would be useful, both professionally and just for fun, to know a bit wider array of frameworks, libraries and other stuff related to web development, and last week it was Jaxer time. Now, I’ve got my hands on Django, a Python-based web framework. I’ve always liked Python – The syntax is refreshingly different, and some of its …