Home
Bluemind.org
PHP: simple model mapper with Zend_Db_Table PDF Print E-mail
Written by Administrator   
Monday, 05 October 2009 12:20

Using Zend_Db_Table to access database is a good way to retreive data. However, the pattern Zend_Db_Table implements (table data gateway) has, IMHO, a major drawback: it does not provide abstraction of table's fields names.

This article describes a simple solution that I use...

Last Updated on Monday, 05 October 2009 13:43
Read more...
 
VirtualBox using physical bootable partition PDF Print E-mail
Written by Administrator   
Sunday, 02 November 2008 22:00

I recently reformated my laptop hardrive to use ArchLinux instead of Gentoo. So I decided to make a special partition to run WinXP natively as well as under virtualbox. I just explain a little the steps I followed to make it working...

Last Updated on Sunday, 02 November 2008 22:56
Read more...
 
PHP: Zend_Application and not working ressources PDF Print E-mail
Written by Administrator   
Tuesday, 30 June 2009 23:01

If you use PHP and Zend Framwork, you may use Zend_Application, a marvelous componant that appeared in the 1.8 version of the framework.

I just did some tests with it, and more precisely with ressources like translate and db. I had problem with the db ressource: no Zend_Adapter was initialised and thus, no adapter were set as the default one for Zend_DB_Table. It took me an hour of debugging to find the reason because I had just done a copy/paste from the reference guide and my application.ini was identical !

Well, in fact, the problem was the copy / paste: a invisible but bad caracters (160) was inserted between "resources.db.adapter" and "=". So the option "adapter" was in fact read as something like "adapter " (notice the space at the end) in PHP. And if you take a look at how ressource's plugins work, you will see that the option "adapter" is concatenated with "set" to make a call to a method named "setadapter()". Unfortunately, no error nor exception is thrown if the method does not exists. SO in my case the framework searched for "setadapter ()" which was not existant. So all dbAdapter intialisation was silently ignored...

I hope this could help someone somewhere ;) 

Last Updated on Tuesday, 30 June 2009 23:18
 
MDA Overview PDF Print E-mail
Written by Administrator   
Thursday, 27 November 2008 22:34

This article presents a little overview of the MDA concept (Model Driver Achitecture). Moreover, thoses few words are the base reflection that led me to the creation of XmiTransform.

Like all things found in this site, I wrote this small article with my very humble knownledge, so don't hesitate to give me your feedback and / or advices.

Last Updated on Monday, 05 October 2009 12:20
Read more...
 
Software update: XmiTransform 0.2.1 PDF Print E-mail
Written by Administrator   
Thursday, 12 March 2009 22:08
After quite a long time, I managed to make a new release of xmiTransform. Check the project page for changes log and download link: XmiTransform
 


Page 1 of 2
 
Original design by i-cons.ch / namibia-forum.ch