ZF is used for the project in the past two days.1.7. For various reasons, the project view must be completed using smarty. There is a lot of information on the Internet about combining ZF with smarty. When you use smarty and find a problemZF's
How to read the number of lines of code and the number of lines of code
Use CLOC (Count Line of Code)
Prerequisites: 1. preinstalled with perl
2. Download CLOC. http://cloc.sourceforge.net/
Unzip the installation package to get the
Summary of the latest PHP classic interview questions in 2017 (previous article), and last article in 2017
1. Difference Between Double quotation marks and single quotation marks
Double quotation marks are used to interpret variables.
Insert
Smarty
Smarty is characterized by compiling templates into PHP scripts and then executing these scripts. Fast and flexible.
Heyes template classA very easy-to-use, but powerful and fast template engine that helps you move the page layout and
Smarty is a PHP template engine that separates logical programs from external content and provides an easy-to-manage method.Smarty requires the Web server to run php4.0.6 or later.The smarty library file is required for smarty installation. You can
The samrty code for the logic article list in the javasache article list after the SMARTY post is as follows:
$smarty -> setCacheDir(ROOT_PATH."/cache/forum");$smarty -> display("$module/list.html",$_SERVER["REQUEST_URI"]);
ROOT_PATH = my root
Smarty front-end template engine Smarty
Smarty can be said to be the first open-source framework I used to access the PHP language. with the help of Smarty, I successfully completed project development and followed the MVC mode. But later, I found
Execute in SQL no problem execution error in PHP ~ ~
Error is access denied for user: [email protected] ' (Using password:no)
I used to use a blank password, there is no error, and now other files are not wrong, this one error, the code is posted as
PHP Smarty Cache usage
First, use the cache?To turn on the Smarty cache, simply set caching to True and specify Cache_dir.Use Cache_lefetime to specify the cache lifetime in secondsTo generate multiple different caches for the same page,
Ask Smarty Post ClearCache The logic of the post list
The Samrty code for the article list is as follows
Setcachedir, $smarty-Root_path. " /cache/forum ");$smarty, display ("$module/list.html", $_server["Request_uri"]);
Root_path = My root
Smarty Template Output Character garbled
I created config.conf as a configuration file, I want to use the Smarty template to import and output in the page
Php,html and config.conf are encoded as Utf8,firefox browser Unicode
The page was garbled.
I
PHP's Smarty template engine
PHP is an embedded HTML scripting language, in order to separate the HTML and PHP code, the so-called logical layer and the presentation layer, which is the purpose of the template engine. In order to achieve this
Using $smarty->register_object Error
I PHP
Require ("libs/smarty.class.php");
$smarty = new Smarty;
$smarty->template_dir= "Templates";
$smarty->cache_dir= "Cache";
$smarty->config_dir= "Configs";
$smarty->compile_dir= "Templates_c";
Class
Ask for a smarty to write the registration login page
Need a Smarty Write the login page code, in addition to the project needs to establish what the file can, Baidu Search can not be used, I want to learn through this samrty, I here first thank you.
Thinkphp how to integrate with Smarty,
Smarty how to integrate with thinkphp
------Solution--------------------
Before you ask Google Kazakhstan
Http://hi.baidu.com/dckhello/item/a255b54a655cf700e93504bf
Too many, too many.
------Solution----------
After solving the character verification problem that plagued the day, I found a smarty nested call problem in csdn.G analyzed several articles.
Assume that there are four files. The PHP files are in the same directory and the same names match each
1. The difference between double quotation marks and single quotation marks
Double quote explanatory variable, single quote not explanatory variable
Double quotation marks in single quotes, where there are variables in single quotes,
Original link: http://www.cnblogs.com/zhyunfe/p/6209097.html1. The difference between double quotation marks and single quotation marks
Double quote explanatory variable, single quote not explanatory variable
Double quotation marks in
Smarty/*First, what is Smarty?Smarty is a php template used to write a template engine, it provides a separation of logic and external content, in brief, the purpose is to use a PHP programmer with the Art of separation, the use of programmers to
1. The difference between double quotation marks and single quotation marks
Double quote explanatory variable, single quote not explanatory variable
Double quotation marks in single quotes, where there are variables in single quotes,
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.