Naneau

Go dik-dik, go!

Category: Zend Framework

Extra fields for Zend_Db_Table

Zend_Db_Table is a very, VERY handy class for working with databases. It has come up in numerous posts on this blog. But I’ve always felt that for a complete model implementation there was something missing. For me, the greatest advantage of defining my models away from the rest of the code is that you can [...]

A Zend Framework tutorial, part four

In the first three parts of this tutorial I talked about designing your models and controllers. In this fourth part I’m going to take a look at views. Views are the final part of a MVC application. They contain code that will create the output of the application.
For most of you this will mean that [...]

Ext JS Zend Model Viewer

The title for this post is quite descriptive. While working on my post on ExtJS grids it dawned on me that all I was doing was rewriting a model definition in JavaScript , for use with the grid. Writing a JSON reader for my Data Store was just mapping it to model fields. And as [...]

Easy living

The life of a programmer has become easier and easier over the years. High level programming languages, decent development environments and good manuals all help. With the rise of the internet, sharing knowledge has become a lot easier. And because of that, people now share solutions to common problems.
Before I started this blog, a few [...]

Zend Framework and Stock Quotes

While browsing I found this blog post by Greg Neutstaetter. I downloaded his code and tried to get it to work with the current version of the Zend Framework. There were only a few minor modifications that needed to be made for it to work, which tells you something about the stability of the framework. [...]

Updating Ajax Charts

HTML is a markup language for producing static pages. When trying to present data to your end users that changes over time, that can be a problem. There are different ways to get around that. The whole Ajax hype floats on it.
Charts are a way of presenting information. Because they are images you need some [...]

A Zend Framework tutorial, part three

When I started writing this tutorial I mentioned that I assumed you had the Zend Framework running on your server. I may have falsely assumed that you had a working bootstrap file for it as well. Writing a simple bootstrap file isn’t that difficult, but there are many things you can add to it, some [...]

Handy little Lorem Ipsum class

I often need some random filler text when designing an application. Traditionally, designers use lorem ipsum as ‘random’ text. I have written a handy little class for use with the Zend Framework for this, though it should also function on it’s own.
I just wanted to share it with the you, it might come in handy. [...]

Creating an Ext JS grid using the Zend Framework

Web development has become a lot easier with the rise of frameworks and libraries that help you with common tasks. On the server side there’s PEAR, CakePHP, Symfony and the Zend Framework, amongst others. For the client you can choose from YUI, Prototype, Scriptaculous, Ext JS and many, many more. All these libraries and frameworks [...]

A Zend Framework tutorial, part two

In part one of my tutorial for a zend framework application I talked about creating a general design for your application. If you’re following my approach, you should by now have in your possession some kind of document with requirements for your application. You should also have a diagram with the basic layout of your [...]

A Zend Framework tutorial, part one

Some of the code in this tutorial (all four parts) does not work with version 1 of the framework. Especially the part on rendering views has changed.

After reading many tutorials, I decided it was time to write one myself. Not because the ones out there are bad, most of them are really good reads, and [...]

JsTable and Ext JS

There are plenty of interesting things you can do with JsTable. Because I had some spare time I wrote up a simple application that uses JsTable to build an Ext JS grid. The result will look something like this:

You can do this for every model you have. It will display all the fields for a [...]

Securing JsTable

After introducing JsTable there were concerns about it’s security. While the javascript itself of course can’t change your models, creating a matching controller that gives unlimited access to your database is probably a bad idea.
So I’m going to show you how to make it (more) secure. First, JsTable can be initialized like this:
123var mP = [...]

Introducing JsTable

I stumbled across Jester a little while ago. Jester is a Javascript library built on top of Prototype for working with Ruby on Rails (RoR) ActiveResource. And it made me think. I am not a RoR man, I may turn into one in the future, but for now I’m quite happy using PHP. Since [...]