Smarty PHP Template Programming & Applications

Valutazione media 3,38
( su 8 valutazioni fornite da GoodReads )
 
9781904811404: Smarty PHP Template Programming & Applications

Smarty is a templating engine for PHP. Designers who are used to working with HTML files can work with Smarty templates, which are HTML files with simple tags while programmers work with the underlying PHP code.

The Smarty engine brings the code and templates together. The result of all this is that designers can concentrate on designing, programmers can concentrate on programming, and they don't need to get in each others way so much.

Even if you are developing a site on your own, Smarty is a powerful way to make your code clearer to you and others, as well as easier to debug and modify later.

Le informazioni nella sezione "Riassunto" possono far riferimento a edizioni diverse di questo titolo.

About the Author:

Hasin Hayder graduated in Civil Engineering from the Rajshahi University of Engineering and Technology (RUET) in Bangladesh. He is a Zend-certified Engineer and expert in developing localized applications. He is currently working as a Technical Director in Trippert Labs and managing the local branch in Bangladesh. Beside his full time job, Hasin writes his blog at http://hasin.wordpress.com, writes article in different websites and maintains his open source framework Orchid at http://orchid.phpxperts.net. Hasin lives in Bangladesh with his wife Ayesha and his son, Afif. Jo¿o Prado Maia is Lead Software Developer with Alert Logic, Inc. and was previously with MySQL AB as the lead developer behind Eventum, an issue tracking system, and MySQL Network, a subscription product for everything related to MySQL services. He has been working with PHP, Smarty, and PEAR for several years, and maintains phpbrasil.com, one of the most popular PHP-related community sites in Brazil. He is also interested in fostering a community of PHP developers in Houston by organizing the Houston PHP Users Group at http://www.houstonphp.org. Lucian Gheorghe has just joined the Global NOC of Interoute, Europe's largest voice and data network provider. Before Interoute, he was working as a senior network engineer for Globtel Internet, a significant Internet and Telephony Services Provider to the Romanian market He has been working with Linux for more than 8 years putting a strong accent on security for protecting vital data from hackers and ensuring good quality services for internet customers. Moving to VoIP services he had to focus even more on security as sensitive billing data is most often stored on servers with public IP addresses. He has been studying QoS implementations on Linux to build different types of services for IP customers and also to deliver good quality for them and for VoIP over the public internet. Lucian has also been programming with Perl, PHP and Smarty for over 5 years mostly developing in-house management interfaces for IP and VoIP services.

Contenuti:

Preface
Chapter 1: Introduction to Smarty
Chapter 2: Smarty Site Architecture
Chapter 3: What Designers Need to Know
Chapter 4: Creating a Template
Chapter 5: Advanced Templating
Chapter 6: Smarty Functions
Chapter 7: Debugging for Designers
Chapter 8: Built-in Smarty Variables and Methods
Chapter 9: Caching and Performance
Chapter 10: Extending Smarty with Plug-ins
Chapter 11: Filters
Chapter 12: Internationalization
Index

* Preface

Up

* Chapter 1: Introduction to Smarty
o Templating Systems
+ Why Use a Templating System?
+ The Smartness of Smarty
+ Smarty Alternatives
o A Rough Guide to the Software Design Process
+ Working in Teams: Layers and Separation of Concerns
o Smarty—The Ultimate Templating System for PHP
+ Is Smarty Fast?
+ Is Smarty Secure?
o Smarty's Main Features
+ Variable Modifiers
+ Template Functions
+ Debugging
+ Plugins
+ Filters
o Smarty Internals
o Installing and Configuring Smarty
+ Step 1: Obtaining Smarty
+ Step 2: Configure PHP to Find the Smarty Libraries
# On Windows
# On Linux
+ An Alternative to Step 2: Using Smarty without Having Full Access to the System
+ Step 3: Set Up Smarty for Your Application
+ Step 4: Verifying the Installation
+ Smarty Development Versions on CVS
o Upgrading a Smarty Site
o Summary

Up

* Chapter 2: Smarty Site Architecture
o Separation of Concerns
+ What Does Concern Mean?
+ A Problem-Solving Perspective
+ Cross-cutting Concerns
o Roles Involved in Building and Maintaining a Website
o Starting a Smarty Project
+ Directory Structure
+ Securing our Smarty Project
+ The Data Access Layer
# How it Works
+ The Business Logic Layer
# How it Works
+ The Presentation Layer
# How it Works
+ The Result
o Summary

Up

* Chapter 3: What Designers Need to Know
o Development Team Problems: Common Scenarios
o Roles of a Template Designer and a Programmer
o Definitions and Concepts for Designers
+ Concept of Reusability and Components
+ Splitting into Components
+ How to Design Table-less Layouts?
+ Handy Built-in Tags
o Choosing an Editor for Template Design
o Collaborating with Programmers
o Summary

Up

* Chapter 4: Creating a Template
o Design Concepts, from HTML to TPL
o Introduction to Smarty Variables
o Starting Templates
+ Nonassociative Array
+ Associative Array
+ Passing Arrays to Smarty Templates and Manipulating Them
o Basic Templating
+ Logical Conditions
+ Loops
# section
# foreach
o Templates in the Real World
+ Calendar
+ Database Report
+ Data Input Forms
+ Email Newsletter
+ Running PHP Code Inside your Templates
o Summary

Up

* Chapter 5: Advanced Templating
o Smarty under the Hood
+ Compile Steps
+ Prefilters and Postfilters
+ What is a Smarty Modifier?
o Stretch your Imagination with Smarty
+ Student Transcript
+ Photo Gallery
o Available Modifiers
+ capitalize
+ count_characters
+ cat
+ count_paragraphs
+ count_words
+ date_format
+ default
+ escape
+ indent
+ lower
+ upper
+ nl2br
+ regex_replace
+ replace
+ spacify
+ string_format
+ strip
+ strip_tags
+ truncate
+ wordwrap
o Combining Modifiers
o Configuration Files
o Summary

Up

* Chapter 6: Smarty Functions
o Types of Smarty Functions
o Functions in Action
+ Action: Re-using Page Elements with the include Function
+ Explanation

* Inserting Dynamic Content
* Passing Variables to Included Templates
* Saving Variables in Configuration Files
* Creating Configuration Sections for Each Page
* Handling Lists in Templates
* Removing Extra White Space from Templates
* Handling JavaScript Code in Templates
* Processing Deeply Nested Arrays
* Cycling Through a List of Values
* Avoiding Spam Indexers
* Form-Related Functions
* More Form-Related Functions
* Summary

Up

* Chapter 7: Debugging for Designers
o Debugging Smarty Templates
o Semantic Errors
o Common Smarty Errors
o Other Common Smarty Errors
o Smarty Debug Console
o Summary

Up

* Chapter 8: Built-in Smarty Variables and Methods
o Built-in Smarty Variables
+ $template_dir
+ $compile_dir
+ $config_dir
+ $plugins_dir
+ $debugging
+ $error_reporting
+ $debug_tpl
+ $debugging_ctrl
+ $compile_check
+ $force_compile
+ $caching
+ $cache_dir
+ $cache_lifetime
+ $cache_modified_check
+ $php_handling
+ $security
+ $secure_dir
+ $security_settings
+ $trusted_dir
+ $left_delimiter
+ $right_delimiter
+ $request_vars_order
+ $request_use_auto_globals
+ $compile_id
+ $use_sub_dirs
+ $default_modifiers
+ $default_resource_type
+ $cache_handler_func
+ $autoload_filters
+ $config_overwrite
+ $config_booleanize
+ $config_read_hidden
+ $config_fix_newlines
+ $default_template_handler_func
+ $compiler_file
+ $compiler_class
+ $config_class
o Handy Built-in Smarty Variables Table

* Built-in Smarty Methods
o assign
o assign_by_ref
o Example: Working of assign and assign_by_ref
o append
o append_by_ref
o clear_assign
o register_function
o unregister_function
o register_object
o unregister_object
o register_block
o unregister_block
o register_compiler_function
o unregister_compiler_function
o register_modifier
o unregister_modifier
o register_resource
o unregister_resource
o register_prefilter
o unregister_prefilter
o register_postfilter
o unregister_postfilter
o register_outputfilter
o unregister_outputfilter
o load_filter
o clear_cache
o clear_all_cache
o is_cached
o clear_all_assign
o clear_compiled_tpl
o template_exists
o get_template_vars
o get_config_vars
o trigger_error
o display
o fetch
o config_load
o get_registered_object
o clear_config

* Summary

Up

* Chapter 9: Caching and Performance
o Caching in Smarty
o Dynamically Caching Template Sections
o Clearing the Cache
o Advanced Caching Features
o Using Cache Groups
o Clearing a Cache Group
o Avoiding the Cache
o Creating a Custom Cache Handler
o Optimizing Smarty Applications
o Profiling PHP
o Designing Sites for Effective Caching
+ The LastModified and ETag Headers
+ The Expires Header
+ The CacheControl Header

* Tools: ApacheBench (ab)
* Tools: Xdebug
* Tools: WinCacheGrind
* Summary

Up

* Chapter 10: Extending Smarty with Plug-ins
o Finding and Installing Plug-ins
o Useful Plug-ins
+ HTML List Plug-in
+ File Size Format Plug-in
+ Google Highlight Plug-in
o Writing y...

Le informazioni nella sezione "Su questo libro" possono far riferimento a edizioni diverse di questo titolo.

I migliori risultati di ricerca su AbeBooks

Edizione Internazionale
Edizione Internazionale

1.

Gheoghe, L
ISBN 10: 190481140X ISBN 13: 9781904811404
Nuovi Soft cover Quantità: > 20
Edizione Internazionale
Da
University Bookstore
(DELHI, DELHI, India)
Valutazione libreria
[?]

Descrizione libro 2006. Soft cover. Condizione libro: New. This book is BRAND NEW Soft cover International edition with black and white printing. ISBN number & cover page may be different but contents identical to the US edition word by word. Book is in English language. Codice libro della libreria UN-SHRO-335

Maggiori informazioni su questa libreria | Fare una domanda alla libreria

Compra nuovo
EUR 9,21
Convertire valuta

Aggiungere al carrello

Spese di spedizione: EUR 10,00
Da: India a: U.S.A.
Destinazione, tempi e costi

2.

Gheoghe, L
Editore: Packt Publishing (2006)
ISBN 10: 190481140X ISBN 13: 9781904811404
Nuovi Paperback Quantità: 1
Da
Irish Booksellers
(Rumford, ME, U.S.A.)
Valutazione libreria
[?]

Descrizione libro Packt Publishing, 2006. Paperback. Condizione libro: New. book. Codice libro della libreria 190481140X

Maggiori informazioni su questa libreria | Fare una domanda alla libreria

Compra nuovo
EUR 21,23
Convertire valuta

Aggiungere al carrello

Spese di spedizione: GRATIS
In U.S.A.
Destinazione, tempi e costi

3.

Gheoghe, L
Editore: Packt Publishing (2006)
ISBN 10: 190481140X ISBN 13: 9781904811404
Nuovi Paperback Quantità: 1
Da
City Bargains
(Murfreesboro, TN, U.S.A.)
Valutazione libreria
[?]

Descrizione libro Packt Publishing, 2006. Paperback. Condizione libro: New. New Condition - We Ship Quickly Thank you for your business. Codice libro della libreria mon0000008355

Maggiori informazioni su questa libreria | Fare una domanda alla libreria

Compra nuovo
EUR 23,18
Convertire valuta

Aggiungere al carrello

Spese di spedizione: EUR 3,74
In U.S.A.
Destinazione, tempi e costi

4.

Gheoghe, L
Editore: Packt Publishing (2006)
ISBN 10: 190481140X ISBN 13: 9781904811404
Nuovi Brossura Quantità: 1
Da
Book Deals
(Lewiston, NY, U.S.A.)
Valutazione libreria
[?]

Descrizione libro Packt Publishing, 2006. Condizione libro: New. Brand New, Unread Copy in Perfect Condition. A+ Customer Service! Summary: Smarty is a templating engine for PHP. Designers who are used to working with HTML files can work with Smarty templates, which are HTML files with simple tags while programmers work with the underlying PHP code. The Smarty engine brings the code and templates together. The result of all this is that designers can concentrate on designing, programmers can concentrate on programming, and they don't need to get in each others way so much.Even if you are developing a site on your own, Smarty is a powerful way to make your code clearer to you and others, as well as easier to debug and modify later.This book is a comprehensive guide to all aspects of using Smarty. It will help you to:* Install and configure Smarty on your Web server* Understand how Smarty affects your web site architecture, and build site foundations that make the most of what Smarty offers* Designers will learn to work with templates that contain variables and logic, to modify layouts or content of Smarty web sites* See how Smarty caching can improve the performance of your sites* Develop custom Smarty functions and plug-ins to incorporate into your templatesUsing a step-by-step approach based on realistic examples, the expert authors show you how to use Smarty in your own PHP development. Codice libro della libreria ABE_book_new_190481140X

Maggiori informazioni su questa libreria | Fare una domanda alla libreria

Compra nuovo
EUR 27,01
Convertire valuta

Aggiungere al carrello

Spese di spedizione: GRATIS
In U.S.A.
Destinazione, tempi e costi

5.

Gheoghe, L
Editore: Packt Publishing 2006-03 (2006)
ISBN 10: 190481140X ISBN 13: 9781904811404
Nuovi Quantità: 5
Print on Demand
Da
Chiron Media
(Wallingford, Regno Unito)
Valutazione libreria
[?]

Descrizione libro Packt Publishing 2006-03, 2006. Condizione libro: New. This item is printed on demand. Brand new book, sourced directly from publisher. Dispatch time is 24-48 hours from our warehouse. Book will be sent in robust, secure packaging to ensure it reaches you securely. Codice libro della libreria NU-LSI-06949855

Maggiori informazioni su questa libreria | Fare una domanda alla libreria

Compra nuovo
EUR 28,87
Convertire valuta

Aggiungere al carrello

Spese di spedizione: EUR 3,53
Da: Regno Unito a: U.S.A.
Destinazione, tempi e costi

6.

Gheoghe, L
Editore: Packt Publishing Limited, United Kingdom (2006)
ISBN 10: 190481140X ISBN 13: 9781904811404
Nuovi Paperback Quantità: 10
Print on Demand
Da
The Book Depository US
(London, Regno Unito)
Valutazione libreria
[?]

Descrizione libro Packt Publishing Limited, United Kingdom, 2006. Paperback. Condizione libro: New. 230 x 190 mm. Language: English . Brand New Book ***** Print on Demand *****. Using a step-by-step approach based on realistic examples, the expert authors show you how to use Smarty in your own PHP development. This book is written for PHP developers who want to use Smarty templates in their development, and for designers who are working with PHP developers who are using Smarty. Codice libro della libreria AAV9781904811404

Maggiori informazioni su questa libreria | Fare una domanda alla libreria

Compra nuovo
EUR 33,96
Convertire valuta

Aggiungere al carrello

Spese di spedizione: GRATIS
Da: Regno Unito a: U.S.A.
Destinazione, tempi e costi

7.

Gheoghe, L
Editore: Packt Publishing Limited, United Kingdom (2006)
ISBN 10: 190481140X ISBN 13: 9781904811404
Nuovi Paperback Quantità: 10
Print on Demand
Da
The Book Depository
(London, Regno Unito)
Valutazione libreria
[?]

Descrizione libro Packt Publishing Limited, United Kingdom, 2006. Paperback. Condizione libro: New. 230 x 190 mm. Language: English Brand New Book ***** Print on Demand *****.Using a step-by-step approach based on realistic examples, the expert authors show you how to use Smarty in your own PHP development. This book is written for PHP developers who want to use Smarty templates in their development, and for designers who are working with PHP developers who are using Smarty. Codice libro della libreria AAV9781904811404

Maggiori informazioni su questa libreria | Fare una domanda alla libreria

Compra nuovo
EUR 34,15
Convertire valuta

Aggiungere al carrello

Spese di spedizione: GRATIS
Da: Regno Unito a: U.S.A.
Destinazione, tempi e costi

8.

Gheoghe, L
Editore: Packt Publishing (2006)
ISBN 10: 190481140X ISBN 13: 9781904811404
Nuovi Paperback Quantità: 1
Da
Ergodebooks
(RICHMOND, TX, U.S.A.)
Valutazione libreria
[?]

Descrizione libro Packt Publishing, 2006. Paperback. Condizione libro: New. Codice libro della libreria DADAX190481140X

Maggiori informazioni su questa libreria | Fare una domanda alla libreria

Compra nuovo
EUR 33,59
Convertire valuta

Aggiungere al carrello

Spese di spedizione: EUR 3,74
In U.S.A.
Destinazione, tempi e costi

9.

Gheoghe, L
Editore: Packt Publishing Limited (2006)
ISBN 10: 190481140X ISBN 13: 9781904811404
Nuovi Quantità: > 20
Print on Demand
Da
Books2Anywhere
(Fairford, GLOS, Regno Unito)
Valutazione libreria
[?]

Descrizione libro Packt Publishing Limited, 2006. PAP. Condizione libro: New. New Book. Delivered from our UK warehouse in 3 to 5 business days. THIS BOOK IS PRINTED ON DEMAND. Established seller since 2000. Codice libro della libreria LQ-9781904811404

Maggiori informazioni su questa libreria | Fare una domanda alla libreria

Compra nuovo
EUR 30,86
Convertire valuta

Aggiungere al carrello

Spese di spedizione: EUR 10,63
Da: Regno Unito a: U.S.A.
Destinazione, tempi e costi

10.

Gheoghe, L
Editore: Packt Publishing (2016)
ISBN 10: 190481140X ISBN 13: 9781904811404
Nuovi Paperback Quantità: 1
Print on Demand
Da
Ria Christie Collections
(Uxbridge, Regno Unito)
Valutazione libreria
[?]

Descrizione libro Packt Publishing, 2016. Paperback. Condizione libro: New. PRINT ON DEMAND Book; New; Publication Year 2016; Not Signed; Fast Shipping from the UK. No. book. Codice libro della libreria ria9781904811404_lsuk

Maggiori informazioni su questa libreria | Fare una domanda alla libreria

Compra nuovo
EUR 38,75
Convertire valuta

Aggiungere al carrello

Spese di spedizione: EUR 3,44
Da: Regno Unito a: U.S.A.
Destinazione, tempi e costi

Vedi altre copie di questo libro

Vedi tutti i risultati per questo libro