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:

Draven wrote:
http://smarty.php.net/manual/en/language.function.include.php.php


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.

Login

Who's Online

203 user(s) are online (147 user(s) are browsing Support Forums)


Members: 0


Guests: 203


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits