Need to change smarty file into zend file

99封情书 提交于 2019-12-20 07:46:54

问题


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>


回答1:


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.



来源:https://stackoverflow.com/questions/5002243/need-to-change-smarty-file-into-zend-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!