search
HomeBackend DevelopmentPHP TutorialSmarty template engine video teaching material course recommendations

"Smarty Template Engine" will show you how to achieve code separation. smarty is one of the most famous PHP template engines in the industry. It separates logical code and external content, providing an easy-to-manage and use method to separate PHP code logic that is originally mixed with HTML code. Simply put, the purpose is to separate PHP programmers from front-end personnel so that the work of the two will not affect each other!

Smarty template engine video teaching material course recommendations

Play address: http://www.php.cn/course/636.html

This video was recorded by a teacher from Boer Education Xiling. The teacher has his own famous saying and style: Pretending is the primary productive force. If you don’t like to pretense, how can you have the motivation to learn? Lecture style: vivid and vivid, explaining complex computer concepts clearly through common things in life. Humorous language, simple explanation, clear organization, layer-by-layer analysis, interlocking, rigorous argumentation, rigorous structure, using the logical power of thinking to attract people Students' attention!

Then the more difficult points in the main course are: MVC and smarty

samrty: The main implementation is the separation of m and v,
samrty is The compiled template engine has its own unique syntax,
rich samrty functions:

Template nesting, reading setting files, variable preprocessing. Conditional judgment, loop control
smarty_inc.php inherits the class of smarty, that is to say, it is an inheritance class.
In the future, this inheritance class will be used directly instead of the samrty class.
The reason is that if you want to modify a certain parameter in the future, You only need to modify the method in smarty-inc. There is no need to modify every file
To facilitate future maintenance

MVC: In the large-scale development process, if you only separate m and v In terms of development, it is still not enough.
Because the web presentation layer needs to implement various output data,
These codes are mainly in M. In the end, M will become very complicated, with many conditional judgments such as if. , this will reduce the readability and maintainability of the program
In order to solve this contradiction, c is introduced. c mainly controls when to call the method in m, processes the input and output data, and finally displays it in v
 
 mv: It is equivalent to the instinctive reaction of the human body and does not require brain processing. This is only suitable for simple development.
mvc:c is equivalent to the human brain. It can process the variables submitted by v. After being processed by c, it is submitted to m. In this way, it can handle more complex problems.
c can handle the more complex problems in the middle. Suitable for large-scale development

Here we provide you with video courseware download:http://www.php.cn/xiazai/code/2018

Courseware The following is about the process of learning Smarty template engine:

  1. Learning smarty

  2. Basic use

  3. Basic usage

  4. The problem of delimiter conflict

  5. Judgment, looping, operation

  6. Variables Features of regulators and template compilation

  7. The difference between display and fetch

  8. Cache

  9. ##Single Template multi-caching

  10. Partial caching

  11. The sorrow of template engine

  12. The relationship between MVC and smarty

What I have mentioned above is only part of the courseware. You can download the rest of the content locally and further study and use it!

The above is the detailed content of Smarty template engine video teaching material course recommendations. For more information, please follow other related articles on the PHP Chinese website!

Statement
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
使用Python访问各种音频和视频文件的元数据使用Python访问各种音频和视频文件的元数据Sep 05, 2023 am 11:41 AM

我们可以使用Mutagen和Python中的eyeD3模块访问音频文件的元数据。对于视频元数据,我们可以使用电影和Python中的OpenCV库。元数据是提供有关其他数据(例如音频和视频数据)的信息的数据。音频和视频文件的元数据包括文件格式、文件分辨率、文件大小、持续时间、比特率等。通过访问这些元数据,我们可以更有效地管理媒体并分析元数据以获得一些有用的信息。在本文中,我们将了解Python提供的一些用于访问音频和视频文件元数据的库或模块。访问音频元数据一些用于访问音频文件元数据的库是-使用诱变

ppt视频换个电脑就无法播放怎么办ppt视频换个电脑就无法播放怎么办Feb 23, 2023 am 11:29 AM

ppt视频换个电脑就无法播放是因为路径不对,其解决办法:1、将PPT和视频放入U盘的同一个文件夹内;2、双击打开该PPT,找到想要插入视频的页数,点击“插入”按钮;3、在弹出的对话框内选择想要插入的视频即可。

如何使用Golang将多个图片转换为视频如何使用Golang将多个图片转换为视频Aug 22, 2023 am 11:29 AM

如何使用Golang将多个图片转换为视频随着互联网的发展和智能设备的普及,视频成为了一种重要的媒体形式。有时候我们可能需要将多个图片转换为视频,以便展示图片的连续变化或者制作幻灯片。本文将介绍如何使用Golang编程语言将多个图片转换为视频。在开始之前,请确保你已经安装了Golang以及相关的开发环境。步骤1:导入相关的包首先,我们需要导入一些相关的Gola

Vue 中如何实现视频播放器?Vue 中如何实现视频播放器?Jun 25, 2023 am 09:46 AM

随着互联网的不断发展,视频已经成为了人们日常生活中必不可少的娱乐方式之一。为了给用户提供更好的视频观看体验,许多网站和应用程序都开始使用视频播放器,使得用户可以在网页中直接观看视频。而Vue作为目前非常流行的前端框架之一,也提供了很多简便且实用的方法来实现视频播放器。下面,我们将简要介绍一下在Vue中实现视频播放器的方法。一、使用HTML5的video标签H

电脑打不开视频是什么原因电脑打不开视频是什么原因Jun 27, 2023 pm 01:42 PM

电脑打不开视频原因有:1、视频文件不完整;2、没有支持此视频的播放器;3、视频文件的后缀被修改过;4、视频文件关联不正确;5、没有使用插件。

生成视频如此简单,给句提示就行,还能在线试玩生成视频如此简单,给句提示就行,还能在线试玩May 20, 2023 pm 05:16 PM

你输入文字,让AI来生成视频,这种想法在以前只出现在人们的想象中,现在,随着技术的发展,这种功能已经实现了。近年来,生成式人工智能在计算机视觉领域引起巨大的关注。随着扩散模型的出现,从文本Prompt生成高质量图像,即文本到图像的合成,已经变得非常流行和成功。最近的研究试图通过在视频领域复用文本到图像扩散模型,将其成功扩展到文本到视频生成和编辑的任务。虽然这样的方法取得了可喜的成果,但大部分方法需要使用大量标记数据进行大量训练,这可能对许多用户来讲太过昂贵。为了使视频生成更加廉价,JayZhan

南科大黑科技:一键消除视频人物,特效师的救星来了!南科大黑科技:一键消除视频人物,特效师的救星来了!May 25, 2023 pm 02:56 PM

来自南方科技大学的这款视频分割模型,可以追踪视频中的任意事物。不仅会“看”,还会“剪”,从视频中去掉个人,对它来说也是轻轻松松的事。而操作上,你唯一需要做的就是点几下鼠标。这位特效艺术家看到消息后仿佛找到了救星,直言这一产品将改变CGI行业的游戏规则。这款模型叫做TAM(TrackAnythingModel),是不是和Meta的图像分割模型SAM名字很像?的确,TAM就是将SAM扩展到了视频领域,点亮了动态物体追踪的技能树。视频分割模型其实不是新技术了,但传统的分割模型并没有减轻人类的工作。这些

为什么视频保存后相册找不到为什么视频保存后相册找不到Aug 15, 2023 am 10:37 AM

视频保存后相册找不到是因为视频保存的位置不正确、视频文件损坏或格式不受支持、视频被隐藏或加密和手机系统或应用程序的问题。1、视频保存的位置不正确,在相册中查找子文件夹,或者使用文件管理器应用程序来搜索手机存储中的视频文件;2、视频文件损坏或格式不受支持,使用其他播放器来打开视频,或者使用视频修复工具来修复损坏的视频文件;3、视频被隐藏或加密等等。

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Repo: How To Revive Teammates
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.