需要将 smarty 文件更改为 zend 文件 [英] Need to change smarty file into zend file

查看:29
本文介绍了需要将 smarty 文件更改为 zend 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我有smarty文件,我需要转换成zend..如何将 smarty 更改为 zend?它的 tpl 文件

<form action="/account/login" method="post">{{input_text type="hidden" name="redirect_url" value=$smarty.server.REDIRECT_URL|default:"/"}}<div class="包含"><div class="fieldgrp"><label>&nbsp;</label><div class="field"><p><h3>Enter&nbsp;User&nbsp;Credentials</h3></p></div>

<div class="fieldgrp"><label for="login_name">用户名</label><div class="field">{{input_text name="login" id="login_name" class="longfield" maxlength="100"}}

<div class="fieldgrp"><label for="login_password">密码 </label><div class="field">{{input_text type="password" name="password" id="login_password" class="longfield" maxlength="100"}}</div>

<div class="fieldgrp"><label>&nbsp;</label><div class="field"><input type="submit" value="Login"/></div>

</表单>

解决方案

您可以将 Smarty 代码替换为它生成的 HTML....

例如.

{{input_text name="login" id="login_name" class="longfield" maxlength="100"}}

变成

但除此之外,这个问题并没有多大意义.

HI here i have smarty file and i need to convert into zend.. How can i change smarty to zend? its tpl file

<div id="add-user-form" class="form">
    <form action="/account/login" method="post">
    {{input_text type="hidden" name="redirect_url" value=$smarty.server.REDIRECT_URL|default:"/"}}

    <div class="contain">
        <div class="fieldgrp">
            <label>&nbsp;</label>
            <div class="field"><p><h3>Enter&nbsp;User&nbsp;Credentials</h3></p></div>
        </div>
    <div class="fieldgrp">
        <label for="login_name">Username </label>
        <div class="field">{{input_text name="login" id="login_name" class="longfield" maxlength="100"}}</div>
    </div>

    <div class="fieldgrp">
        <label for="login_password">Password </label>
        <div class="field">{{input_text type="password" name="password" id="login_password" class="longfield" maxlength="100"}}</div>
    </div>

    <div class="fieldgrp">
        <label>&nbsp;</label>
        <div class="field"><input type="submit" value="Login" /></div>
    </div>
</div>

</form>

解决方案

You can replace the Smarty code with the HTML it generates....

eg.

{{input_text name="login" id="login_name" class="longfield" maxlength="100"}}

becomes

<input type="text" name="login" id="login_name" class="longfield" maxlength="100">

But past that, this question doesn't really make a lot of sense.

这篇关于需要将 smarty 文件更改为 zend 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
其他开发最新文章
热门教程
热门工具
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆