Want to find an example solution for a smarty+php simple website

Source: Internet
Author: User
Looking for an example of a smarty+php simple website
Want to find an example of a smarty+php simple website, do not know where to download.
The example does not need to be too complicated, the key is to demonstrate the function and basic usage of smarty, do you have such an example?
I find on the internet is either too complex, or only documents, not suitable for fast learning! Look at the prawns.

------Solution--------------------
You can go to download ecshop, there is a Smarty+fak news release system on the Internet, all can
------Solution--------------------
Posts top up because I want to find an example like this
------Solution--------------------
Tottyandbaty said very well, Ecshop is a good example.
------Solution--------------------
Just look at the Smarty Handbook.
------Solution--------------------
See Smarty's own demo on it can be, to the very simple,
Or look at the install file inside.
REQUIREMENTS:

Smarty requires PHP 4.0.6 or later.
See the on-line documentation for complete install instructions.

Installation (Quick):

* Copy the files under the libs/directory to a directory, that's in your PHP
Include_path, or set the Smarty_dir constant and put them in this directory.
(If you upgrade from versions before 2.5.0 is aware that up to Smarty 2.4.2
All necessary files where in the distribution's root directory, but is now
In libs/.)

* For each application using Smarty, create a "templates", "Configs", and a
"Templates_c" directory, being sure to set the appropriate directory settings in
Smarty for them. If They is located in the same directory as your
Application, they shouldn ' t need to be modified. Be sure the "Templates_c"
Directory is writable by your Web server user (usually nobody). Chown
Nobody:nobody Templates_c; chmod Templates_c You can also chmod 777 this
Directory, but is aware of security issues for multi-user systems. If you are
Using Smarty ' s built-in caching, create a "cache" directory and also Chown
Nobody:nobody.


* Setup your PHP and template files. A Good working example is in the on-line
Documentation.

* TECHNICAL Note:if You don't have access to the php.ini file and you can change
Non-server settings (such as your include_path) with the Ini_set () command.
Example:ini_set ("Include_path", ".:/ Usr/local/lib/php ");
  • 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.