Smarty --roles of template designer and programmer
2012-04-21 14:04
501 查看
Roles of a Template Designer and a Programmer
There are at least two significant players in a web application development team. They are the designers and coders. They each have distinct roles but must work together to make this web application successful, easy to maintain, and easy to extend. Firstly, let's go through the detailed role of a designer.
?Separate the presentation layer: As a designer, your primary job is to completely separate the presentation code from your business logic. You must ensure that this separation will be usable and optimized.
?Figure out fixed parts and dynamic parts: Before you start designing, you must figure out which parts will be dynamic and which parts will be static.
?Figure out reusable parts and make best use of them: Separate your template into components (like a header, navigation bar, body, footer, and so on) and ensure integrity between them.
?Collaborate with programmers: See what parameters programmers give you and how you can use them. If you need something more or find something that is lacking, you should immediately inform them.
Chapter 3
Design plug-ins and modifiers if necessary: If you are not familiar with extending Smarty (though it's in some ways a programmer's job; but it may be considered as a big plus point if you are familiar with it and will give you an extra facility), at least inform the programmers in your team that you need a special functionality that could be accomplished by plug-ins or modifiers.
There are at least two significant players in a web application development team. They are the designers and coders. They each have distinct roles but must work together to make this web application successful, easy to maintain, and easy to extend. Firstly, let's go through the detailed role of a designer.
?Separate the presentation layer: As a designer, your primary job is to completely separate the presentation code from your business logic. You must ensure that this separation will be usable and optimized.
?Figure out fixed parts and dynamic parts: Before you start designing, you must figure out which parts will be dynamic and which parts will be static.
?Figure out reusable parts and make best use of them: Separate your template into components (like a header, navigation bar, body, footer, and so on) and ensure integrity between them.
?Collaborate with programmers: See what parameters programmers give you and how you can use them. If you need something more or find something that is lacking, you should immediately inform them.
Chapter 3
Design plug-ins and modifiers if necessary: If you are not familiar with extending Smarty (though it's in some ways a programmer's job; but it may be considered as a big plus point if you are familiar with it and will give you an extra facility), at least inform the programmers in your team that you need a special functionality that could be accomplished by plug-ins or modifiers.
相关文章推荐
- List of approver codes and roles analysis
- Smarty Php Template Programming And Applications
- Oracle, Odbc and DB2-CLI Template Library Programmer's Guide
- The issue of template definition and declaration separation
- “Progamming language choice and calibre of programmer”
- Smarty Php Template Programming And Applications
- A Designer's Guide to Adobe InDesign and XML: Harness the Power of XML to Automate your Print and We
- django1.8 提示(1_8.W001) The standalone TEMPLATE_* settings were deprecated in Django 1.8 and the TEMPLATES dictionary takes precedence. You must put the values of the following settings into your defau
- Android error:This template requires a build target API version of at least 14, and the current vers
- Two group of roles in SCRUM --- The Chicken and The Pig
- Main and Vice-drive System Roles of Rotary Kiln
- How to add a Login, Roles and Profile system to an ASP.NET 2.0 app in only 24 lines of code
- The run order about Loaded event and OnApplyTemplate in custom control of Silverlight 2 beta 2
- New influence in American Life -- The roles of man and woman changing
- Qt5:"Designer: An error has occurred while reading the UI file at line 1, column 0: Premature end of document."错误
- 【MonogDB】The description of index(二) Embedded and document Index
- ANALYSIS AND EXPLOITATION OF A LINUX KERNEL VULNERABILITY (CVE-2016-0728)
- Lower Lock % and Number of Slow Queries
- Advantage and disadvantage of XML
- 124.View the Exhibit and examine the structure of the PROMOTIONS, SALES, and CUSTOMER tables.