[SOLVED] Smarty variable is empty in </__body>
Posted: Mon Feb 04, 2013 9:07 am
Hi,
i'm struggling with smarty variable scope, although I believe it should be straightforward...
I use cmsms 1.11.4 on Ubuntu 12.04 LTS with php 5.3.10
This Page template produces a page with 456, when I expect 123456
The <head> does contain the 123 comment as expected.
{process_pagedata}<!DOCTYPE html>
<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
{$test="123"}
<!-- {$test} -->
</head>
</__body>
{content assign="notused"}
{$test}456
<__body>
</__html>
Can anybody else reproduce this behaviour and maybe help me understand it?
Thank you very much.
i'm struggling with smarty variable scope, although I believe it should be straightforward...
I use cmsms 1.11.4 on Ubuntu 12.04 LTS with php 5.3.10
This Page template produces a page with 456, when I expect 123456
The <head> does contain the 123 comment as expected.
{process_pagedata}<!DOCTYPE html>
<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
{$test="123"}
<!-- {$test} -->
</head>
</__body>
{content assign="notused"}
{$test}456
<__body>
</__html>
Can anybody else reproduce this behaviour and maybe help me understand it?
Thank you very much.