Archive for the “development” category

Concat js files on demand

by Patrick on February 16, 2012

At connectiv! we always have a load of JavaScript files to be loaded for some interactive stuff. Sometimes it’s so many that the amount of HTTP requests slows down the pageload. With the help of a small PHP script we reduced the number of HTTP requests to one. What the script does is it reads (…)

Object-oriented programming in JavaScript

by Patrick on February 3, 2012

Although JavaScript is not an object oriented language, you can use some OOP like paradigms to structure your code. This tutorial is meant to be introductory. After reading this, you will know the very basics, a point to start and go on if you like. JavaScript is so called “prototype based”, which  basically means that there (…)

Java MVC with “note”

by Patrick on April 11, 2011

In order to train my Java skills I started a little program called “note”. It was thought to be some note manager, with adding, editing, deleting, etc. notes. Since I don’t have any clue of swing or AWT it was started as a console program – and never left that stadium. The only interesting thing, (…)

Zend View Helper in database stored content

by Patrick on February 13, 2011

One of my co-workers currently writes his own website based on the Zend Framework. He wanted to use view helpers inside of the content, just like you do in view scripts. But the thing with content nowadays is that it is stored inside a database. He came up with a pretty simple, yet somewhat brilliant solution. (…)

OpenID: What it is and how it works

by Patrick on October 21, 2010

I struggled really hard at getting in touch with OpenID, especially with Zend_OpenId. Let’s face it: The Zend documentation looks more like a Klingon manual on how to slice up a Kirk. But Zend_OpenId is not the point now. This article is the first part of  a little series on OpenID (since all programming blogs (…)

Who hasn’t yet, who wants again?

by Patrick on November 16, 2009

UPDATE: Google Wave Now Open For All! Thus: Invitations aren’t needed anymore; log in and feel great :) UPDATE: 13 left. UPDATE: It seems like everyone who is already registered at Google Wave gets eight more invitations to give away. Therefore I’ve got a total of 14 invitations for you guys. A few weeks ago (…)

Zend_Acl autoloader?

by Patrick on July 30, 2009

Again about Zend Framework. When I read the documentation of  Zend_Acl for the first time, I thought “My god, you want me to load the whole ACL structure at each request? You can’t be serious.” Of course not. Again asking Google for help I quickly found a dynamic ACL loader in the framework’s Wiki. That’s (…)

Zend_Layout: Layouts per module

by Patrick on July 24, 2009

Today I was confronted with the problem to assign a single layout.phtml to each module of a Zend Application. At first I thought it’d be done easily with an application.ini line like this one: admin.resources.layout.layoutPath = path/to/layout (whereas “admin” is the module name). But as often, pressing F5 brought disillusion, it doesn’t work this way. (…)

Smarty 3

by Patrick on November 3, 2008

My favourite in terms of templates develops further! Take part in the development of Smarty 3 at the Smarty Developers Group or chat a little about this awesome template engine here in the Smarty Discussion Group.