[Entry] Use smarty in Windows (use XAMPP)

Source: Internet
Author: User

1. Download the smarty package

Content

2. Create a directory to store your project

The path under XAMPP is:

3. Upload the libs directory in the smarty package to the project directory.

Create a new "Smarty" directory under the project directory, and then set the libs content:

Secret to the "Smarty" directory.

4. Modify the php. ini file

Append at the end of the file:

 

 
  Export de_path = ".; C: \ XAMPP \ PHP \ smarty \ Libs"

 

(The Path depends on your actual situation)

 

5. Test

The content in the demo in the downloaded smarty package

Upload All files to the new project, and then change the require path in the index. php file to the following path.

 

 
  Require 'smarty/smarty. Class. php ';

 

In the browser address bar, enter:

 

 

 
  Http: // localhost/testsmarty/index. php

 

The demo is displayed as follows:

 

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

The tutorial is complete! Pai_^

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.