zoukankan      html  css  js  c++  java
  • 【入门】windows下使用smarty(使用xampp)

    1、下载smarty包

    内容如图:

    2、新建一个目录用来存储你的工程

    xampp下的路径为:

    3、将smarty包中libs目录拷入工程目录内

    先在工程目录下新建一个“smarty”目录,再将libs的内容:

    拷入“smarty”目录中。

    如图:

    4、修改php.ini文件

    在文件的末尾追加上:

    include_path = ".;C:\xampp\php;C:\xampp\php\smarty\libs"

    (路径根据您的实际情况而定)

    5、测试

    将download下来的smarty包中的demo中的内容

    全部拷入新建的工程下,然后将index.php文件中的require路径改为如下路径。

    require 'smarty/Smarty.class.php';

    在浏览器地址栏中输入:

    http://localhost/testsmarty/index.php

    可以看到demo的显示:

    ------------------------------------------------------------------------------

    教程结束!^_^

  • 相关阅读:
    PHP入门
    requests中text,content,json之间的区别
    有关pip报错的问题

    pycharm操作
    python selenium 相关操作
    python tkinter菜单
    初识Go
    Python _easygui详细版
    easygui _1
  • 原文地址:https://www.cnblogs.com/elaron/p/1878615.html
Copyright © 2011-2022 走看看