English 中文(简体)
需要将smarty文件更改为zend文件
原标题:Need to change smarty file into zend file

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>

问题回答

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

例如。

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

变成

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

但在那之后,这个问题就没有什么意义了。





相关问题
Zend 邮件问题,涉及外国char子+ com子

泽斯德邮局在名称被定为具有外国性质(如“保”)和 com(”)的物品时,就放弃了一种例外(因为邮局(邮局)退回假)。 重新提出以下守则。

PHP Framework: Ebay Like Site

I am going to be builiding a site like ebay - with all the features of ebay. Please note my payment method is limited to paypal. What would be the best PHP framework to use to build this quickly, ...

Link to a specific step in onepage checkout

Is it possible to redirect the browser to nth step in the onepage checkout? If so, how would one go about doing it? I m working on a payment module and have a sort of "cancel" action that i would ...

Tagging with Zend Framework

I m trying to create the same solutions as below, but using a simple MySQL query (instead of the static version used below where the words/tags are implemented in the code). The name of the MySQL ...

dynamicaly adding textboxes to zend_form

I hope that this is a quick question to answer. I am developing a form using Zend_Form, I have a number of Zend_Dojo_Form_Element_Textboxs to add to this form dynamically. These are added from rows ...

热门标签