smarty模板解决方法
smarty模板
请问 tpl 文件用什么东东编译 我用dreamweaver 打开*.tpl 改动了一下 在按F12运行 。发现编译后的 %%B2^B29^B298BD0A%%index.tpl.php文件变成如下代码。 那么请问tpl文件用什么软件编译。
---
compiled from 06/index.tpl */ ?>
nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
{if $smarty.get.type == 'tm'}
欢迎光临,{$smarty.get.type}
{else}
对不起,您不是本站VIP,无权访问此栏目。
{/if}
------解决方案--------------------
任何软件都可以,记事本都行,只要你符合smarty和html的语法就可以
.tpl.php改变了说明正确了啊,这里存放的本来就是smarty编译好的模板吧
不知道你改动了啥,又产生了什么区别,你想得到什么结果?
------解决方案--------------------
你修改了 smarty 的定界符!
所以默认的定界符 {、} 就原样输出了

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Guide to Table Border in HTML. Here we discuss multiple ways for defining table-border with examples of the Table Border in HTML.

This is a guide to Nested Table in HTML. Here we discuss how to create a table within the table along with the respective examples.

Guide to HTML margin-left. Here we discuss a brief overview on HTML margin-left and its Examples along with its Code Implementation.

Guide to HTML Table Layout. Here we discuss the Values of HTML Table Layout along with the examples and outputs n detail.

Guide to Moving Text in HTML. Here we discuss an introduction, how marquee tag work with syntax and examples to implement.

Guide to the HTML Ordered List. Here we also discuss introduction of HTML Ordered list and types along with their example respectively

This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an

Guide to HTML onclick Button. Here we discuss their introduction, working, examples and onclick Event in various events respectively.
