Hi Eric! Thanks for the fast reply. I really appreciate the help on this
one. :D
Eric Butera wrote:
As Rich pointed out you cannot have constants within a class in PHP4.
To answer the second part of your mail, one technique that I have seen
is something like the code below.
Ahhh, that is interesting! Thanks for sharing the code snippet. I think
I may head this direction. :)
Another way that is nice is Solar's way of handling locales.
Basically it uses strings such as 'SOME_ERROR_MESSAGE' which is
populated by an include file that contains the actual value to it. So
in this include file you create an array that contains key value pairs
of error codes and error messages.
Oh, wow! That sounds interesting... I am going to catch some zzZZzz's
and read-up on this in the "morning." :D
Ahhh, and it looks like a cool framework too:
<http://solarphp.com/>
I may have to dip-into that. I have yet to try a PHP framework. Django
was pretty fun, but I think I would have more fun with a PHP framework. :)
Anyway, thanks a billion for sharing different approaches, it is great
to hear how the pros deal with such things.
Have a great day and/or night.
Cheers,
Micky
--
Wishlists: <http://snipurl.com/1gqpj>
Switch: <http://browsehappy.com/>
BCC?: <http://snipurl.com/w6f8>
My: <http://del.icio.us/mhulse>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php