国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Home php教程 php手冊(cè) PHP.MVC的模板標(biāo)簽系統(tǒng)之標(biāo)簽行為調(diào)度

PHP.MVC的模板標(biāo)簽系統(tǒng)之標(biāo)簽行為調(diào)度

Jun 13, 2016 am 11:20 AM
act yes standard Label template of system Behavior Scheduling

TagActionDispatcher是一個(gè)標(biāo)準(zhǔn)的ActionDispatcher類的實(shí)現(xiàn),它支持訪問基本模板標(biāo)簽。TagActionDispatcher類支持相同的ActionObjects集合和ViewResourcesConfig屬性作為默認(rèn)的ActionDispatcher。TagActionDispatcher類能被用在帶有或沒有帶有模板標(biāo)簽系統(tǒng)上,盡管由于它的額外處理會(huì)造成小的性能下降。
  模板標(biāo)簽庫(kù)是PHP。MVC框架結(jié)構(gòu)的子系統(tǒng),模板標(biāo)簽庫(kù)聯(lián)合TagActionDispatcher一起工作來(lái)支持一些簡(jiǎn)單的模板標(biāo)簽。
  下面的圖表顯示了PHP。MVC模板標(biāo)簽系統(tǒng)的總攬。左邊展示的是模板標(biāo)簽系統(tǒng)的程序流程。右邊是TagActionDispatcher的程序流程,還有標(biāo)簽?zāi)0迨窃鯓邮惯@些類進(jìn)行交互。


  1、初始化
  當(dāng)控制器傳遞控制到達(dá)TagActionDispatcher,一些初始化觸發(fā)去設(shè)置ActionObjects和ViewResourcesConfig屬性為了使用我們的模板:
從request中重新獲得$form,$errors和$data對(duì)象,如果這些對(duì)象中的任意一個(gè)已經(jīng)在之前被創(chuàng)建(比如在Action類中),那么對(duì)象現(xiàn)在將在資源模板中不可見,否則對(duì)象將被設(shè)置為NULL。
  重新獲得ViewResourcesConfig對(duì)象的參考,它包含了配置參數(shù)。
  設(shè)置在ViewResourcesConfig參數(shù)中指向模板源文件和編譯的模板文件的路徑。
  2、設(shè)置標(biāo)簽頁(yè)面
  模板源文件的擴(kuò)展名(可能是"。ssp")被用來(lái)和ViewResourcesConfig->tagFlagStr參數(shù)相比較來(lái)決定是否這個(gè)頁(yè)面需要處理,否則頁(yè)面將被處理為標(biāo)準(zhǔn)(無(wú)標(biāo)簽)模板文件。我們能在view-resources元素中配置標(biāo)簽文件擴(kuò)展名,就像這樣:
<view-resources
...
tagFlagStr = "。ssp"
tagFlagCnt = "-4"
...
</view-resources>
  tagFlagStr指示了標(biāo)簽?zāi)0逶次募鼙活A(yù)處理,比如:myPage。ssp。這個(gè)擴(kuò)展名觸發(fā)標(biāo)簽處理。屬性tagFlagCnt定義了文件名結(jié)尾的字符數(shù),包括"。"(xxxYyy。ssp)。據(jù)個(gè)例子,-4代表源文件名最后4個(gè)字符。默認(rèn)值是。ssp和-4,因此如果我們使用一個(gè)模板文件名像myPage。ssp,我們不需要設(shè)置這些參數(shù)。
  3、處理標(biāo)簽文件
  模板標(biāo)簽系統(tǒng)決定是否運(yùn)行標(biāo)簽處理器,要根據(jù)ViewResourcesConfig->processTags屬性。如果這個(gè)屬性為真,模板頁(yè)(及它所包含的頁(yè))將被標(biāo)簽處理器類所處理,否則標(biāo)簽處理器不會(huì)被調(diào)用。開發(fā)者只要將它在開發(fā)中將其設(shè)置為真即可,假則不處理。但要注意的是當(dāng)processTags屬性設(shè)置為真,修改過(guò)的標(biāo)簽頁(yè)才會(huì)被編譯(這依賴于compileAll屬性設(shè)置)。我們能定義processTags屬性在view-resources元素,就像這樣:

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

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

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.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

CUDA's universal matrix multiplication: from entry to proficiency! CUDA's universal matrix multiplication: from entry to proficiency! Mar 25, 2024 pm 12:30 PM

General Matrix Multiplication (GEMM) is a vital part of many applications and algorithms, and is also one of the important indicators for evaluating computer hardware performance. In-depth research and optimization of the implementation of GEMM can help us better understand high-performance computing and the relationship between software and hardware systems. In computer science, effective optimization of GEMM can increase computing speed and save resources, which is crucial to improving the overall performance of a computer system. An in-depth understanding of the working principle and optimization method of GEMM will help us better utilize the potential of modern computing hardware and provide more efficient solutions for various complex computing tasks. By optimizing the performance of GEMM

Huawei's Qiankun ADS3.0 intelligent driving system will be launched in August and will be launched on Xiangjie S9 for the first time Huawei's Qiankun ADS3.0 intelligent driving system will be launched in August and will be launched on Xiangjie S9 for the first time Jul 30, 2024 pm 02:17 PM

On July 29, at the roll-off ceremony of AITO Wenjie's 400,000th new car, Yu Chengdong, Huawei's Managing Director, Chairman of Terminal BG, and Chairman of Smart Car Solutions BU, attended and delivered a speech and announced that Wenjie series models will be launched this year In August, Huawei Qiankun ADS 3.0 version was launched, and it is planned to successively push upgrades from August to September. The Xiangjie S9, which will be released on August 6, will debut Huawei’s ADS3.0 intelligent driving system. With the assistance of lidar, Huawei Qiankun ADS3.0 version will greatly improve its intelligent driving capabilities, have end-to-end integrated capabilities, and adopt a new end-to-end architecture of GOD (general obstacle identification)/PDP (predictive decision-making and control) , providing the NCA function of smart driving from parking space to parking space, and upgrading CAS3.0

Which version of Apple 16 system is the best? Which version of Apple 16 system is the best? Mar 08, 2024 pm 05:16 PM

The best version of the Apple 16 system is iOS16.1.4. The best version of the iOS16 system may vary from person to person. The additions and improvements in daily use experience have also been praised by many users. Which version of the Apple 16 system is the best? Answer: iOS16.1.4 The best version of the iOS 16 system may vary from person to person. According to public information, iOS16, launched in 2022, is considered a very stable and performant version, and users are quite satisfied with its overall experience. In addition, the addition of new features and improvements in daily use experience in iOS16 have also been well received by many users. Especially in terms of updated battery life, signal performance and heating control, user feedback has been relatively positive. However, considering iPhone14

Always new! Huawei Mate60 series upgrades to HarmonyOS 4.2: AI cloud enhancement, Xiaoyi Dialect is so easy to use Always new! Huawei Mate60 series upgrades to HarmonyOS 4.2: AI cloud enhancement, Xiaoyi Dialect is so easy to use Jun 02, 2024 pm 02:58 PM

On April 11, Huawei officially announced the HarmonyOS 4.2 100-machine upgrade plan for the first time. This time, more than 180 devices will participate in the upgrade, covering mobile phones, tablets, watches, headphones, smart screens and other devices. In the past month, with the steady progress of the HarmonyOS4.2 100-machine upgrade plan, many popular models including Huawei Pocket2, Huawei MateX5 series, nova12 series, Huawei Pura series, etc. have also started to upgrade and adapt, which means that there will be More Huawei model users can enjoy the common and often new experience brought by HarmonyOS. Judging from user feedback, the experience of Huawei Mate60 series models has improved in all aspects after upgrading HarmonyOS4.2. Especially Huawei M

Huawei will launch the Xuanji sensing system in the field of smart wearables, which can assess the user's emotional state based on heart rate Huawei will launch the Xuanji sensing system in the field of smart wearables, which can assess the user's emotional state based on heart rate Aug 29, 2024 pm 03:30 PM

Recently, Huawei announced that it will launch a new smart wearable product equipped with Xuanji sensing system in September, which is expected to be Huawei's latest smart watch. This new product will integrate advanced emotional health monitoring functions. The Xuanji Perception System provides users with a comprehensive health assessment with its six characteristics - accuracy, comprehensiveness, speed, flexibility, openness and scalability. The system uses a super-sensing module and optimizes the multi-channel optical path architecture technology, which greatly improves the monitoring accuracy of basic indicators such as heart rate, blood oxygen and respiration rate. In addition, the Xuanji Sensing System has also expanded the research on emotional states based on heart rate data. It is not limited to physiological indicators, but can also evaluate the user's emotional state and stress level. It supports the monitoring of more than 60 sports health indicators, covering cardiovascular, respiratory, neurological, endocrine,

Differences and similarities of cmd commands in Linux and Windows systems Differences and similarities of cmd commands in Linux and Windows systems Mar 15, 2024 am 08:12 AM

Linux and Windows are two common operating systems, representing the open source Linux system and the commercial Windows system respectively. In both operating systems, there is a command line interface for users to interact with the operating system. In Linux systems, users use the Shell command line, while in Windows systems, users use the cmd command line. The Shell command line in Linux system is a very powerful tool that can complete almost all system management tasks.

Detailed explanation of how to modify system date in Oracle database Detailed explanation of how to modify system date in Oracle database Mar 09, 2024 am 10:21 AM

Detailed explanation of the method of modifying the system date in the Oracle database. In the Oracle database, the method of modifying the system date mainly involves modifying the NLS_DATE_FORMAT parameter and using the SYSDATE function. This article will introduce these two methods and their specific code examples in detail to help readers better understand and master the operation of modifying the system date in the Oracle database. 1. Modify NLS_DATE_FORMAT parameter method NLS_DATE_FORMAT is Oracle data

Linux Chinese system download official website, easily solve your installation problems Linux Chinese system download official website, easily solve your installation problems Mar 08, 2024 am 09:30 AM

The official website for downloading the Linux Chinese operating system is committed to providing users with a simple and efficient download experience. Below are some frequently asked questions and answers for your reference. 1.What is the official Chinese download website for Linux system? The official Chinese download website of the Linux system is the official resource platform for the Chinese version of the Linux operating system for the majority of users. In this online community, you can easily obtain various Linux system versions and freely choose and download them. 2. Why choose the Chinese version of Linux system? The Chinese version of Linux is specially designed to meet the needs of Chinese users. Its interface and applications are all presented in Chinese, which is more in line with the daily habits of Chinese users. In addition, this version

See all articles