[Chameleon-dev] [Bug 1356] [JSAPI] No MLT available in UpdateMap.php

bugzilla-daemon at bugzilla.maptools.org bugzilla-daemon at bugzilla.maptools.org
Tue Mar 14 08:52:52 EST 2006


------- Additional Comments From wbronsema at dmsolutions.ca  2006-03-14 08:52 -------
This functionality already exits - and even documented. ;) Check out the
"MLT_for_Chemaleon_Developers.txt" doc (I believe this is what you want to do):

Streamlining Chameleon for Speed
Some Chameleon applications do not need language translation and, as such,
should not have to pay the overhead costs of the translation.  mlt.php now
includes a class that can be used in place of the MLTPHPInclude such that it
will only return the default value.  This class is called "MLTPHPIncludeDefault".

This class has all the same methods and member variables as the real
MLTPHPInclude class, but it does not have the overhead of including and/or
processing files.  It simply returns the default value.

Chameleon can be overridden to use this default mode by defining a
'MLT_DEFAULT_ONLY' variable and setting it to true or false.  It must be set in
the application before creating the Chameleon instance.


define( 'MLT_DEFAULT_ONLY', true );
class MyChameleon extends Chameleon

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Please do NOT reply to this email, use the link above instead to 
login to bugzilla and submit your comment. Any email reply to this
address will be lost.

More information about the Chameleon-dev mailing list