The smarty template engine can implement page caching to accelerate page access after initialization. To some extent, the smarty template ensures that the Code on the template page is neat and tidy, avoiding the combination of HTML tags and PHP.
The company gave me the website code. how can I learn what I need to read? I am a newbie. I just started to learn PHP for my website.
I don't know how to learn. please give me a hand.
Reply to discussion (solution)
Whether the framework is
Manually developing PHP template engine one (35)
The template is called a TPL and mimics the Smarty template engine.
The template we're talking about is a Web template, a page written primarily by a language composed of HTML markup, but there's
How to tell if the PHP loop is the last one?
{foreach from= $myArray item=foo}
{$foo}
{/foreach}
------Solution--------------------
I think it is possible to check the number of data when the record is read. Assign to the foreground page, the
. TPL vs. php
Recently learning the Smarty framework
See some. tpl files that are written in HTML and PHP code
What is the difference between a. TPL and. php
(Personal idea: pure PHP code is used in.. TPL for mixed code such as PHP
PHP why my Ajax return value is 1 why does the foreground receive the HTML code of the exact entire page page that the alert (data) displays (I used the Smarty also returns the value of the page in the Smarty template)
Reply to
When I first started using the CI framework, I was planning to write a CI Source Code Reading Note series. Unfortunately, there was no action. There have been few projects recently, so I finally had some time to write something. So I want to record
/****************************************************************************** * PHP Smarty Temp Late for Website * Description: * have been thinking of MVC in the way to add to PHP Web site, so better processing, relatively good * processing, so
Unable to load template file ' rj\thinkphp/tpl/dispatch_jump.tpl '----thinkphp3.2.31. Error reason: The thinkphp default template engine was changed to Smarty template engine, causing the call to success () and the error () method to fail.2.
$_get
$_post
$_cookie
$_session
$_files (because the foreground is not available)
$_server
$_request
$_env
$GLOBALS No
Using the request variable in the Smarty template engine, you can request data directly without having to
Share the use of PHP's Smarty template.This paper analyzes the use of Smarty template, and has certain reference value for learning Smarty friends.Details are as follows:I. Comments in the templateEach smarty template file is developed using the
Smarty Introduction What is a stencil engine I don't know when it started, and someone started to feel less satisfied with embedding the Server Script inside HTML. However, whether it is Microsoft's ASP or open source PHP, is the embedded
This example describes how to use variables in the PHP template engine smarty. Share to everyone for your reference, specific as follows:
First, overview:
Smarty is one of PHP's many template engines, which is a library of classes written from PHP.
This article illustrates the method of the CI Framework implementation cookie login. Share to everyone for your reference, specific as follows:
First step: login.php
Login method Public Function login () {//if user name and password is empty,
The example in this article describes how the Smarty template engine obtains data from a configuration file. Share to everyone for your reference. Specifically as follows:
When a variable value is not expected to be written to death in the program,
This problem occurs when you pass the PHP array to JavaScript front-end processing via the Smarty template engine
This is the original solution I summed up:
JavaScript calls the Smarty variable method
But this time, smarty my PHP array into a JS
A
random mix of PHP and other Web page tags will cause program logic, HTML, cascading style sheets (cascading style sheets,css), and JavaScript to be in disarray, making maintenance a daunting task. The Smarty template engine separates the form
Recently did not do, research and research smarty template engine, more and more feel smarty strong, smarty tutorials on the internet seems to be quite messy.
1. Download Smarty,http://www.smarty.net/download
2. Rename the downloaded Smarty to
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.