Posts Tagged ‘PHP’
Monday, February 23rd, 2009
Although it’s fairly easy to create a multi-lingual site with chunks and template variables alone it’s hardly ideal, to say the least. For most pages there will be a lot of unused template variables, the manager area will start to look like a mess. ... Read More
Tags: CMS, MODx, multi language, PHP
Posted in CMS, MODx, PHP | No Comments »
Wednesday, February 18th, 2009
Update: Since the below piece was written I’ve ported the little framework to H2O instead, H2O is a cleaner alternative to Smarty.... Read More
Tags: Doctrine, mysql, PHP, Smarty, zend framework
Posted in Doctrine, PHP, Smarty, Zend Framework | No Comments »
Monday, February 16th, 2009
I’m a bit rusty, after scouring the Doctrine manual for the import functions I found a script of my own that I totally had forgotten:... Read More
Tags: Doctrine, mysql, PHP
Posted in Doctrine | No Comments »
Monday, December 1st, 2008
I just had the need to fetch all gettext strings from a whole project. Sure poEdit can normally do this but this project is using Smarty and {t}something to translate{/t}, poEdit can’t do the Smarty stuff so we need something custom.... Read More
Tags: gettext, PHP, regular expressions, Ruby
Posted in Ruby | No Comments »
Sunday, November 2nd, 2008
I just had to convert a lot of xls files to csv, too many to even contemplating doing it manually. I started looking for a solution and found a positive evaluation of PHP-ExcelReader.... Read More
Tags: conversion, csv, date manipulation, excel, PHP, xls
Posted in PHP | No Comments »
Saturday, November 1st, 2008
The code documented here was originally posted as a single page as is. It just didn’t feel right, it felt lazy and not what this site is about, which is some kind of commentary or notes even though it’s not always extensive, so here you are, the verbose version.... Read More
Tags: directory parsing, file parsing, PHP
Posted in PHP | No Comments »
Friday, October 31st, 2008
Update: I’m not using flash for uploads anymore, XHR is better and more stable if you can require users to use at least Chrome 6 or Firefox 3.6 for instance.... Read More
Tags: actionscript 2, flash, jquery, PHP
Posted in Flex, Flash and AMFPHP, Javascript, jQuery | No Comments »
Sunday, October 26th, 2008
I just found myself wishing for automatic CRUD, for quick and simple administrative tasks, as it turned out a very easy thing to add. The first thing we have to do is move the label selection from having to be explicitly declared in the insert/update form – like we are doing now – to the model:... Read More
Tags: Doctrine, PHP, Smarty
Posted in Doctrine, PHP, Smarty | No Comments »
Tuesday, September 30th, 2008
This stuff can be seen as a continuation of an earlier tutorial integrating external search into a MODx site, i.e. a standalone search logic separate from MODx. This approach is however not limited to any kind of CMS or solution whatsoever, it’s totally agnostic through the use of Ajax. ... Read More
Tags: ajax, Javascript, jquery, PHP
Posted in Ajax, Javascript, jQuery | No Comments »
Tuesday, September 23rd, 2008
I had to start covering various Doctrine snippets for future reference. This post will be updated with more of them as they appear.... Read More
Tags: Doctrine, DQL, PHP
Posted in Doctrine, PHP | 2 Comments »