Entries Categorized as 'tutorial'

Extending Zend_Acl to support custom roles and resources

Date November 29, 2007

Few days ago I played a little with the Zend_Acl package, which provides lightweight and flexible access control list functionality and privileges management. It was very easy to use, but I found that the base Zend_Acl package has some limitation/problem if you want to use it in a bigger real life project. Zend_Acl supports only [...]

What is new in PHP 5.3 – part 2: late static binding

Date November 15, 2007

In the first part of this series I wrote about namespaces, in the second part we will deal with late static binding, which is a very exciting new feature in PHP 5.3 and which promise some really nifty code. This topic attracted attention after Zend’s webcast about the Zend Framework. There was a [...]

What’s new in PHP 5.3 – part 1: namespaces

Date November 13, 2007

In my previous post I mentioned that PHP 5.3 will be released in early 2008 so I think it’s just in time to talk about the features of this version. It is started by this polling (in detail, in an ordered version) on the internal list. The big gun features are namespaces, late static binding [...]

WordPress quicktag toolbar tweaking again

Date November 10, 2007

It is said that it is a good behavior to set title attribute to a tags. I usually put to the title the text of the link. The process is: I put the link to the clipboard, go to the editor, select the text, press Ctrl-A, insert the link to the dialog box, press enter, [...]

How to use Smarty resources

Date November 6, 2007

Have you ever faced the situation, that the content of a variable is a Smarty template like string, and you want to fetch or display it? I worked on project where we decided that our language file entries will be Smarty templates, because we need the flexibility of the template engine (sprintf was not enough). [...]

Posting source code in WordPress: escaping and syntax highlighting the inserted code

Date November 4, 2007

I have already mentioned that I had difficulty in finding a suitable solution to post source code in my blog. However good the workaround presented in my previous post is functioning, I was not satisfied with it. I noticed two annoying things. The first was that I had to escape HTML special chars “manually” in [...]

Symfony form handling recipe

Date November 3, 2007

Symfony is a really great and well-thought-out framework, but I think its form handling support needs some more improvements. 5-6 years ago I developed an MVC framework as my thesis which has the following features related to form handling:

You can define forms logically (including labels, validation rules, error message parameters etc.) via form configuration files. [...]

Escaping problem with WP-Syntax WordPress plugin

Date October 30, 2007

When I started this blog I had spent some time finding a syntax highlighter plug-in for the code snippets presented in the posts. I went to wordpress.org and I tried out some of the plug-ins, but I had some problems with all of them. After a few hours I found the WP-Syntax plug-in. I had [...]