How does the phpsmart template assign values to the input text box the CI framework and smart template used by my project?
The value of this text box is assigned.
$teamId=1; $this->cismarty->assign('teamId',$teamId); $this->cismarty->display('teamInfo.html');
<{$ TeamId}>
Where should this be stored?
Reply to discussion (solution)
Value = ""
Put in value
Can I put it in it? I started to let it go, but the editor reported an error. Is it okay to run it like this?
I tried just now. only the first text box in the value can get the value, and the rest cannot get the value.
$team['Id']=1;$team['Code']='001';$team['Caption']='aaaa';$this->cismarty->assign('team',$team);$this->cismarty->display('teamInfo.html');
There are only values in the first text box, and none else
No <> This symbol
No <> This is not true. value directly outputs the original string.
The first and second floors are correct. I wrote a wrong value. now I have changed it, but the editor shows it wrong. this is very tangled.
These three lines are displayed as errors in the zend studio editor. Is there any other processing method?
There is
How to assign <{$ teamId}> to this address?
If the editor reports an error, disable the HTML debugging function of the editor.