
front and back-end web development, Leeds, UK
Richard's Blog - Design, coding and life in Japan
PHP
Testing controllers in Lithium
Submitted by Richard on Thu, 02/02/2012 - 18:19There is often a need to test your controllers for higher level functional tests. In Lithium using its own test suite this is easy.
For this I am using @daschl's fixtures plugin which can be found here.
Tags:
Practical Internationalization in Lithium
Submitted by Richard on Sat, 12/31/2011 - 02:06Just thought I would write some jottings about internationalization as it is something I seem to do quite a lot of these days. (I have lived in Japan for 15 years with most of my websites being in Japanese so I get asked this a lot!).
Tags:
Weaving Lithium #li3 into a legacy PHP application incrementally
Submitted by Richard on Tue, 10/05/2010 - 11:54Legacy Application
I have a legacy application which was originally written in straight PHP with a few classes that I have created for convenience, but this is old and I am wanting to get this into a modern web framework. I have prepared it by stripping out all of the old Sql and made all Database requests through the excellent Doctrine 2.
Tags:
Using repositories in Doctrine 2
Submitted by Richard on Mon, 10/04/2010 - 13:37One feature of Doctrine 2 and other data mapper style ORM's is that rather than each class model invoking itself to make queries in the database (Active Record style), custom queries to the database are handled by a bridge layer that is extends the Entity Manager.
We cannot do any any queries to the DB without going through the Entity Manager, here is the simplest case:
Tags:
Doctrine 2 and why you should use it!
Submitted by Richard on Thu, 07/29/2010 - 15:23If any of you are used to Hibernate in the Java world you will know what I am talking about. But Doctrine 2 is almost exactly the same as Hibernate.
Tags:
Recent Blog Posts