Detailed explanation of php5 and mysql5 web development technology-12 Smarty and template technology_PHP tutorial

WBOY
Release: 2016-07-14 10:09:12
Original
1074 people have browsed it

1. Introduction to MVC

The core business logic of the system runs inside the model;
Formatted output of the view processing system;
The controller handles input and communicates with the controller
2. Commonly used template systems
Smarty FastTemplateSmart
....
3. Smarty Overview
Advantages and development features....
4. Smarty installation and configuration
5. Basics of Smrty development
Variables and variable formatting:
Variable source:
Capitalize the first letter:
Count the number of characters:
                      Date processing: M:%S"}
Filter characters:
                                                                                                                                                                                                                                     may be intercepted:
nl2br modifier:
6. Control structure
Branch: if elseif else /if
Comparison operators: eq (= ), neq(!=) ,gte(>=) ,not (<=)
Loop structure:
foreach
section
7. Cache
8. In-depth development
register_function
register_block
register_modifier
Important modifiers:
default
strip_tags
literal
nl2br
truncate
Generate static page: www.2cto.com
$output = $smarty->fetch('tmp.html');
fwrite($fp,$output);

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/477664.htmlTechArticle1. The MVC introduction model runs the core business logic of the system; the view handles the formatted output of the system; control The processor processes input and communicates with the controller 2. Commonly used template systems...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!