Archive for 2007
Monday, November 26th, 2007
A lot of people seem to be slightly confused about what the M and C, Model and Controller, of MVC are, in regards to web applications.
What does the Model do?
What does the Controller do?
View is what everyone seems to know, though... I wonder why is that so? What is so ...
Posted in Programming | No Comments »
Saturday, November 24th, 2007
Lately, the Zend_Layout component has been a very popular topic on #zftalk. It is indeed a very useful component, but a lot of people are having trouble understanding how it works.
Adding to the confusion is the outdated documentation regarding the component proposal and the equally outdated articles about Zend/Xend_Layout.
Let's demonstrate ...
Posted in Programming | 33 Comments »
Thursday, November 22nd, 2007
Internationalization and localization means making your site usable in more than one languages. Well, to be honest, you could call a site that's only in english localized to english visitors too, but in any case...
These two are also known as I18N and L10N. Can you guess where these acronyms come ...
Posted in Programming | 9 Comments »
Tuesday, November 20th, 2007
The HTTP protocol is what powers todays web. While not useful for most people, knowing how HTTP works is important for those who work with dynamic web sites.
Still, it seems that the protocol is mostly a mystery to a lot of developers and some features of the protocol, such as ...
Posted in Programming, Web | 3 Comments »
Sunday, November 18th, 2007
Sunday morning, 5 AM...
- Hi
- Haven't seen you in a while, but I have seen you in a foreach!
Proof against homosexuality: You can't connect two male cable connectors.
note: I have nothing against sexual minorities, the above is just a funny fact ;) )
Camel-casing is fundamentally flawed
You know how camelCasingWorks, right? ...
Posted in general | 2 Comments »
Friday, November 16th, 2007
We were talking about routing on the #zftalk IRC channel. One of the users mentioned that rather than using routes, he was using the __call method in the IndexController.
I then asked him why is he doing that, as I knew routes would be more than a good choice for most ...
Posted in Programming | 12 Comments »
Wednesday, November 14th, 2007
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 ...
Posted in Programming | 2 Comments »
Monday, November 12th, 2007
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, ...
Posted in Programming | 1 Comment »
Saturday, November 10th, 2007
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 ...
Posted in Programming | 4 Comments »
Thursday, November 8th, 2007
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 ...
Posted in Programming | 9 Comments »