21301 Posts in 5735 Topics by 2603 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1026 Views |
-
adding php in template [solved]

23 June 2010 at 4:43am Last edited: 23 June 2010 5:49am
Hello
houpsssss ! I can not do it directly sorry for this post I don't know how to supress them
For some reason (passing a variable to a flash movie via flashvar) I have to insert a line of php inside a template :
Inserting flash object inside the template is pretty simple but writting something like
<? php $toto1='toto'; ?> seems not to work.
Maybe it is not possible
Thank you
-
Re: adding php in template [solved]

23 June 2010 at 9:13am
You cannot use PHP in the templates. You must write your PHP functions / code in Page.php and call that from your template..
// mysite/code/Page.php
function ToTo() { return 'toto'; }
// your template
$ToTo;
| 1026 Views | ||
|
Page:
1
|
Go to Top |


