Page 1 of 1
PHP
Posted: Fri Sep 08, 2006 6:09 am
by SilverXp
How can I add PHP to a template, because when I write:
Nothing appears.
Can somebody help me?
Thanks in advantage.
Cya,
Re: PHP
Posted: Fri Sep 08, 2006 6:11 am
by cyberman
Have you tried this
Code: Select all
{literal}
<?php
echo "Hello world";
?>
{/literal}
Re: PHP
Posted: Fri Sep 08, 2006 6:38 am
by mahjong
Re: PHP
Posted: Fri Sep 08, 2006 6:58 am
by SilverXp
The first code isn't working.
And in the manual I don't understand it.
Any suggestions?
Re: PHP
Posted: Fri Sep 08, 2006 7:48 am
by tsw
Create new user defined tag with your php code (without ) and include it to your page or template like {your_user_defined_tag_name}
Re: PHP
Posted: Fri Sep 08, 2006 8:15 am
by SilverXp
Thanks for all the fast replies.
This support is great!
Maybe I send a donation for this CMS. It is really great and it is the only one that I have tested that works like I want it to work.
Keep going on this way.
Bye,
Re: PHP
Posted: Fri Sep 08, 2006 8:19 am
by cyberman
SilverXp wrote:
The first code isn't working.
I'm sorry - my mistake
Should be