How to assign a value to the input text box in the phpsmart template-php Tutorial

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.