Archive for the ‘PHP’ Category

Zend_Pdf drawing multi-line text

Posted: 31st oktober 2011 by Paul de Raaij in PHP
Tags: , ,

Here is an easy trick to enter multi-line text with Zend_Pdf which I use in some Magento PDF creators $this->y = 150; $description = wordwrap(strip_tags($product->getDescription()), 110, "<br />"); foreach (explode("<br />", $description) as $i => $line) { $page->drawText($line, 65, $this->y – $i * 12, ‘UTF-8′); }

Share

Using Doctrine in Joomla

Posted: 5th maart 2011 by Paul de Raaij in PHP, Webdevelopment
Tags: , ,

Joomla is a decent CMS with very nice features. It works great for the end user and has many components ready to use from the online world. What I don’t like personally, as a developer, is the model implementation in Joomla. For me the way ‘ model and table’ classes are implemented, just doesn’t feel [...]

Share

A way to implement unit testing in Joomla!

Posted: 31st juli 2010 by Paul de Raaij in PHP, Webdevelopment
Tags: , ,

Since a couple of months I’m not anymore self-employed and am I working for a company who develops for ActiveCollab, Magento and Joomla!. While developing I’m trying to work according the TDD paradigm. So you write your tests first and then you develop the business logic to succeed the failing test. I’d have to admit that Joomla! [...]

Share

Custom symfony filters to filter model relations

Posted: 21st april 2010 by Paul de Raaij in PHP, Webdevelopment
Tags:

For an application I was looking for a way to add filters in the generated admin application. We’de like to filter clients based on the articles or orders they have.  Lets take a look at the (simplified) schema:

Share

Symfony: Multiple embedded forms in a specific layout

Posted: 27th februari 2010 by Paul de Raaij in PHP, Webdevelopment
Tags: ,

First of all I want to state that I’m quite new to the Symfony Framework and that my English does not compare with a native, but hey, I’ll do my best. At the moment I’m working on my first Symfony application what will be a toto for the upcoming World Championship soccer. A quite challenging [...]

Share

Dit wil ik in 2010 doen

Posted: 15th januari 2010 by Paul de Raaij in Algemeen, PHP, Webdevelopment
Tags:

Ok, we zijn al even in 2010 en het is al zeker niet meer de juiste tijd om de “Beste wensen!” te roepen. Overigens toch al een rare zijn.. wat wens je iemand die andere 350 dagen toen dan? Toch wil ik in dit blog vertellen wat ik dit jaar wil gaan doen op het [...]

Share