Re: Language Switching



On Wed, 01 Oct 2008 18:14:30 -0500, -Lost wrote:

Response to edgy <hotmail@xxxxxxxxxxx>:

I am a beginner with PHP, and I have made a language switcher on a site
that I am looking for your feedback on.

First of all, the page is http://www.mankar.ca My question regarding
usage is - well, does it work?

<snip>

This is where test-driven development comes in handy. It is also most
beneficial to a beginner as you must completely understand the problem
before deriving a solution.

SimpleTest [URL:http://simpletest.org/] is a simple unit testing
framework.

This perhaps not so obviously removes the need to rely on other's
opinions of the application immediately as I'm sure you'll receive more
information than you currently need despite its benefit.

thanks for the link - I will try to bend my mind around it and use this.

But here's the strange thing - and I know that PHP always works exactly
the same - depending on the browser it worked or not. Now I guess that
means that my code isn't perfect, and I just got lucky that it worked on
some, so hopefully this simpletest will help.

Thanks.
.