1
multivac
include_php how it works ?
  • 2003/12/9 20:39

  • multivac

  • Just popping in

  • Posts: 3

  • Since: 2003/12/9


Hi,
i'm trying to get working include_php.

Here is my example used in theme.html

<{include file="default/aaa.html"}>
<{include_php file="default/aaa.php"}>

First include (no php) works, second doesn't work. Why ?

Ciao,
Luca

2
Draven
Re: include_php how it works ?
  • 2003/12/9 20:43

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28



3
multivac
Re: include_php how it works ?
  • 2003/12/9 20:52

  • multivac

  • Just popping in

  • Posts: 3

  • Since: 2003/12/9


Quote:
From manual :
You can optionally pass the assign attribute, which will specify a template variable name that the output of include_php will be assigned to instead of displayed.

In my PHP i have :
<?
print "OOOO";
?>

But it isn't displayed on screen.

Can you help me with an example ?

Ciao,
Luca

4
poolchld
Re: include_php how it works ?
  • 2003/12/11 12:46

  • poolchld

  • Just popping in

  • Posts: 2

  • Since: 2003/12/11


Thanks for the link.Looks very helpful.