PHP

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
SilverXp

PHP

Post by SilverXp »

How can I add PHP to a template, because when I write:



Nothing appears.

Can somebody help me?


Thanks in advantage.

Cya,
cyberman

Re: PHP

Post by cyberman »

Have you tried this

Code: Select all

{literal}
<?php
  echo "Hello world";
?>
{/literal}
mahjong

Re: PHP

Post by mahjong »

SilverXp

Re: PHP

Post by SilverXp »

The first code isn't working.

And in the manual I don't understand it.

Any suggestions?
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: PHP

Post 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}
SilverXp

Re: PHP

Post by SilverXp »

Thanks for all the fast replies. :D

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,
cyberman

Re: PHP

Post by cyberman »

SilverXp wrote: The first code isn't working.
I'm sorry - my mistake

Should be

Code: Select all

{php}

  echo "Hello world";

{/php}
Locked

Return to “CMSMS Core”