Welcome to TheGillis.net

Consider this site a collection of random notes about a variety of topics. I hope this information helps you in some way.

18 January 2005 - 0:03PHPTAL Trick

In my last article I described a situation where a tal:condition attribute would not effectively determine the value of a member variable when it was NULL. I was treating the condition as a normal if statement where I had something similar to tal:condition=”object/property”. When property was set to null, an exception was thrown with the message “Path not found: property”. I came up with a solution that worked, but it appears that it’s a loop hole in PHPTAL. This is what I’ve found.

No Comments | Tags: Programming

17 January 2005 - 23:30PHPTAL and PHP 5

I was going to post an article about how to upgrade to PHP 5, but after removing the PHP 4 port and installing the PHP 5 port all I needed to do was install the corresponding PHP 5 extensions. All of my sites, test code, everything worked. I was truly surprised. The only thing that did not work was my PHPTAL installation. It turns out that due to the differences in how objects and references are handled, PHPTAL version 0.7 no longer works with PHP 5. There is a new version specifically for PHP 5 which is the development version 1.0.0dev7. So I removed the last version and added the new version. It turns out that some stuff is different. This should explain some of the issues that I had to do in order to convert over.

No Comments | Tags: Programming