Posted by Rik Wasmus on 12/03/07 10:31
On Mon, 03 Dec 2007 00:44:12 +0100, <atwiawomo@yahoo.com> wrote:
> This may be simple to solve, but I can't seem to do it :(
>
> I am trying to generate an include name on an image gallery page from
> a variable name.
> By this I mean I already have a numeric value set the variable
> $imageCat.
>
> What I want to do is pull in an external include file using the
> variable as the file name. So if $imageCat is set to 2 I want to bring=
> in 2.html ($imageCat.html).
>
> I can hard code each include request as such:
>
> {if $imageCat=3D=3D"2"}
> {php}
> include ("2.php");
> {/php}
> {/if}
What kind of templating engine is this? Consult their documentation on t=
he =
subject of includes.
-- =
Rik Wasmus
[Back to original message]
|