模板代码分离的写法究竟好不好?该如何处理
模板代码分离的写法究竟好不好???
网上著名的框架有很多,,模板分离的框架貌似只有thinkphp,,然后我看了一下codeigniter,它也有简单的模板分离,但是手
册上说,这种写法效率不高,因为要解析模板标记,所以还是推荐php脚本的写法,然后看了一下zend ,cake之类的框架,也
不是以模板分离的设计为主要结构的。听听众人的意见
------解决方案--------------------
分离当然是好的了。
可以让前端与后台人员的工作的分配
后台只管后台,前面只管显示,各不影响,对后期维护等方便很多。
thinkphp 有自己一套模板语言,这是可以更方便的输出,和前端显示这两个优点。
CI 是木有模板语言,使用的是php原生语言的,这个可以减去模板语言解析成php语法的过程,效率应该会快点。
我个人还是喜欢使用php原生语法的。。。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

In this chapter, we will understand the Environment Variables, General Configuration, Database Configuration and Email Configuration in CakePHP.

PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

To work with date and time in cakephp4, we are going to make use of the available FrozenTime class.

To work on file upload we are going to use the form helper. Here, is an example for file upload.

In this chapter, we are going to learn the following topics related to routing ?

CakePHP is an open-source framework for PHP. It is intended to make developing, deploying and maintaining applications much easier. CakePHP is based on a MVC-like architecture that is both powerful and easy to grasp. Models, Views, and Controllers gu

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

Validator can be created by adding the following two lines in the controller.
