forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: johndankey on October 25, 2006, 08:40:40 pm

Title: {What_Are_These_Called}?
Post by: johndankey on October 25, 2006, 08:40:40 pm
Please excuse a sort of off-topic question.  :-[ I'm having a really weird PHP problem & I'm trying to figure out just what the script is doing.  So could someone tell me what these are called, for instance: {IMAGE}, {ADMIN_MENU}, {USER1}?

With that knowledge I can check the PHP documentation or go to a PHP board.

I found a reference to "placeholder" somewhere in the boards, but that doesn't seem to be the official name for these things.

Thank you,

JD
Title: Re: {What_Are_These_Called}?
Post by: Joachim Müller on October 25, 2006, 09:00:30 pm
Those are no PHP elements, but placeholder tokens that only have a special meaning in Coppermine's template engine. You won't find anything about those tokens in the PHP documentation nor will you be able to re-use them on other (non-coppermine) pages. They have been deliberately created using the curly brackets, the coppermine devs could as well have chosen any other unique string (e.g. instead of using {GALLERY}, we could have created the template engine to use a token named |FOOBAR| or ##WHATEVER##).

Please understand that this board deals with Coppermine-related questions, there are better places to learn PHP.
Title: Re: {What_Are_These_Called}?
Post by: johndankey on October 25, 2006, 09:54:20 pm
Thanks, GauGau.  I guess that's why I don't remember reading about them in the PHP documentation.