Zend Framework initialization shell scripts

Tags:

I’ve had a couple of cases where I’ve wanted to quickly test some stuff with the Zend Framework. Now, to get the framework up and running, you’ll need a couple of things: Directory structure – controller dirs, view dirs, public_html, etc. etc. .htaccess files – To enable routing Bootstrap Controllers I can never remember what to put in the .htaccess …

How to improve your JavaScript

Tags:

There’s a lot of resources on the internet related to coding JavaScript, but many of them are poor and out of date, which I believe is one of the reasons why a lot of people still can’t manage to write JavaScript code which works in all major browsers (IE, Firefox, Opera and Safari – where possible to test it) Let’s …

How to automatically escape template variables in Zend_View

Tags:

Escaping any data which comes from the server is important to escape, as it prevents XSS amongst other things. The Zend Framework view component Zend_View let’s you escape template variables with $this->escape($this->variableName), but it doesn’t escape them by default. Wouldn’t it be much nicer if it did that by default, or at least provided you with a variable to turn …

Summing up Smarty and Zend View

Tags:

I’ve posted a couple of posts related to integrating Smarty with the Zend Framework: Making a Smarty view class based on Zend_View Integrating Zend View Helpers into Smarty I’ve also posted some Zend_View related posts: Using layouts with the Zend ViewRenderer helper Creating a factory-object for building views Let’s wrap up these in a summary of using them and what …

Switching to WordPress

Tags:

I’m moving my blogging from My Opera to here at CodeUtopia.net for now at least. I’ve installed WordPress here, and I must say it was quite painless to get it up and running. I had to do some digging through the documentation to find some features that I want to use, such as showing a small “teaser” of the posts …