Hello. Every time I'm placing some php function in either template or in content, cms always displays errors on the page instead of running that script.
Like for example here is a small php for RSS feed:
items, 0, 5);
// Cycle through each item and echo
foreach ($items as $item )
{
echo ''.$item['title'].'';
}}else { echo 'Error:'.magpie_error().'';}// Restore original error reporting value@ini_restore('error_reporting');
?>
It works totally fine if I just place it in *.php document and upload on the server. What am I doing wrong?
Thank you
Why it doesn't display simple php?
Re: Why it doesn't display simple php?
You don't place php in the template... you can but you need to trun on {php} ... UDTs are where you put php in... And the help and handbook is were you find all this other... Hope that helps...
Re: Why it doesn't display simple php?
Thanks. I start using UDT.
Re: Why it doesn't display simple php?
Sorry I just put up a post, then I read this.
Could I get more detailed information about this?
This is my post http://forum.cmsmadesimple.org/index.php/topic,28964.0.html
Could I get more detailed information about this?
JeremyBASS wrote: You don't place php in the template... you can but you need to trun on {php} ... UDTs are where you put php in... And the help and handbook is were you find all this other... Hope that helps...
This is my post http://forum.cmsmadesimple.org/index.php/topic,28964.0.html