- PHP 5 CMS Framework Development / 2nd Edition
- Martin Brampton
- 244字
- 2021-04-13 17:21:59
Before we go further with CMS development, let's look at a problem that can be neatly solved using PHP5. Substantial systems do not consist of a single file of code. Whatever our exact design, a large system should be broken down into smaller elements, and it makes sense to keep them in separate files, if the language supports it. Code is more manageable this way, and systems can be made more efficient.
As we are considering only PHP implementations, the source code files are used at runtime. PHP is an interpreted language and, at least in principle, runs the actual source code. So we need a good technique for handling many source files at runtime.
This creates issues; a paramount one is security. Another is ease of coding, where it is tedious and cumbersome to have to repeatedly include code to load other files. Yet another is efficiency, as we do not want to load code that is not needed for a particular request.
Ideally we want an automated system for loading the correct code at the time it is needed. We need it to cater for a number of considerations such as:
- Loading code in as few places as possible, as an aid to security
- Avoiding programs needing to know whether code needs to be loaded
- Only loading code that is being used
- Providing a mechanism that will work for extensions beyond the basic system
- Spring Python 1.1
- 剪映專業版(電腦版)視頻剪輯全攻略:音效添加+轉場特效+視頻制作
- Excel 2013電子表格處理
- 平面設計綜合教程:Photoshop+Illustrator+CorelDRAW +InDesign(微課版)
- UG NX 12.0實例寶典
- Ogre 3D 1.7 Beginner's Guide
- 新媒體美工一冊通(全彩)
- SolidWorks快速入門教程(2022中文版)
- PHP 5 Social Networking
- Building Websites with VB.NET and DotNetNuke 4
- Oracle Fusion Middleware Patterns
- PPT設計與制作實戰教程
- 剪映專業版:短視頻創作案例教程(全彩慕課版)
- Revit建模進階標準教程(實戰微課版)
- NumPy 1.5 Beginner's Guide