Dynamic Web Pages: deutschsprachiger PHP Knotenpunkt seit 1999

Dynamic Web Pages : tutorials _


PHP QuickRef

Via QuickRef gelangen Sie direkt zur gesuchten Funktion im Handbuch.



Das PHP Magazin erscheint 2-monatlich zum Preis von 9,80 €. Studenten erfreuen sich über ermäßigte Abos.

Das PHP Journal erscheint 2-monatlich zum Preis von 14,95 €. Studenten und Abonnenten erfreuen sich über bis zu 25% Ermäßigung.

PHP Solutions Magazin
Das PHP Solutions Magazin erscheint alle 3 Monate zum Preis von 8,75 €. Studenten erfreuen sich über ermäßigte Abos.

Der php|architect erscheint monatlich als digitale PDF-Version zum Preis von $3,99 USD und als Print-Version zum Preis von $8,69 USD. Im Abo gibt es Rabatt (30% Print, 15% PDF).

Tutorials: Templates
Tutorial in dieser Kategorie hinzufügen
n1NaMSSICK (247 Zugriffe)

I'm just writing to make you be aware of what a spreub experience my friend's princess experienced visiting your site. She came to understand many details, with the inclusion of what it is like to possess an incredible helping style to have certain people really easily gain knowledge of specific multifaceted topics. You really surpassed readers' expectations. Many thanks for showing the invaluable, dependable, explanatory and as well as easy thoughts on that topic to Emily.

Tutorial kommentieren  Defekten Link melden

OO PHP templating (781 Zugriffe)

Templating is a common technique for separation of concerns in applications - separating presentational logic from domain (or business) logic. This kind of separation promotes higher maintainability and a better chance to reuse presentational code (by encapsulating it in templates), the kind of traits we would all love to have in our code base.

PHP as a language can be considered a templating system, as in its root it was meant to modify HTML pages dynamically. The need for more structured templating systems arose as PHP applications have grown more and more complex, giving birth to much more specialized and focused solutions.

Tutorial kommentieren  Defekten Link melden

Creating Custom Block Tags in Smarty (799 Zugriffe)

Smarty is a very powerful template engine for PHP that allows developers to extend its capabilities using custom plug-ins. There are several different types of plug-ins, each of which serves a different purpose. In this article we will look at how the block plug-in type works.

We will first learn how block plug-ins can be used in your templates, and then learn how to create our own. Once we know how to create a block plug-in, we will cover a practical example that will show you how block plug-ins can effectively be used in your own web sites.

Tutorial kommentieren  Defekten Link melden

Testing Smarty templates (617 Zugriffe)

I follow the principle that you should test everything that could possibly fail. And I would like to have unit tests for everything; tests that exercise each small behavior in isolation. The components that are easiest to unit test are typically class and methods in plain object-oriented code. Not everything falls into that category, though. Page templates, XSLT and other XML files are some counterexamples.

As I mentioned in my blog post on Paparrazzi testing, Uncle Bob (Robert C. Martin) has discussed how to test web templates or server pages. Since I'm currently working with Smarty templates, I wanted a simple way to run tests on them without needing to deal with a web server and the page navigation in a full web application.

Tutorial kommentieren  Defekten Link melden

Processing File Data with Template Classes in PHP 5 (2255 Zugriffe)

If you're looking for a friendly guide on how to implement the template design pattern with PHP 5, then this group of articles might be what you need. Welcome to the final installment of the series that began with "Working with template classes in PHP 5." As the title indicates, this series steps you through creating template classes in PHP-controlled development environments, and also shows you how to use this rather uncommon pattern in real-world situations.

Tutorial kommentieren  Defekten Link melden

Multilanguage setup for Flexy and FlexyFramework (1524 Zugriffe, 1 Kommentare)

FlexyFramework, with HTML_Template_Flexy include the ability quickly create multilingual websites, by translating the templates.

Tutorial kommentieren  Defekten Link melden

Olga schreibt:
I also agree that it is not good to be loading PHP for every style sheet. If you load one PHP page with two dmiaync' style sheets, that's 3 PHP calls for every loaded page, for every visitor. That will add up real quick if/when your website starts to pull traffic.The best thing to do is leave the stylesheets static. If you need to add dmiaync style information, include it in the actual web page in style tags.cigraphics is on the right track for re-generating static style sheets when changes are made to the website, but then you have to worry about browsers caching their CSS sheets because they are expected to be static. I know there are workarounds for that, but why worry about it? Just include any dmiaync content in the main web page.

Using a Template Processor Class in PHP 5 (2922 Zugriffe)

Welcome to part two of the series “Separating logic from presentation.” Comprised of three articles, this series walks you through the development of an extensible template processor in PHP 5, which you might find quite useful for separating the logic of your PHP applications from their visual presentation.

Tutorial kommentieren  Defekten Link melden

How to cache smarty templates (1376 Zugriffe)

What is caching?

Caching is used to speed up a call to display() or fetch() by saving its output to a file. If a cached version of the call is available, that is displayed instead of regenerating the output. Caching can speed things up tremendously, especially templates with longer computation times. Since the output of display() or fetch() is cached, one cache file could conceivably be made up of several template files, config files, etc.

Tutorial kommentieren  Defekten Link melden

Smarty templating and presentation library for PHP (1596 Zugriffe)

PHP has historically been a simple scripting language used for quickly developing small web sites with dynamic content. But newer features have given the language the structure and libraries for building larger applications. One such library is Smarty, a templating and presentation engine. Smarty helps developers build applications in modules by separating the presentation layer from the application code. This article covers some of the basic features of Smarty for developers.

Tutorial kommentieren  Defekten Link melden

Other Uses For Smarty (1390 Zugriffe)

Many people think of the Smarty Template Engine as a system for separating presentation from application logic. This is indeed true, but many people also only consider Smarty for outputting their web site HTML/XHTML. This brief article goes over other situations where Smarty may be useful in your PHP application.

First, we go over how Smarty can be used for managing emails that your site sends out, then we go over other situations where it may be useful to use Smarty.

Tutorial kommentieren  Defekten Link melden


Folge DynamicWebPages!

PHP News als RSS abonnieren ...
Auf Twitter folgen ...
Fan werden auf Facebook ...


PHP Newsletter

Bleiben Sie immer "Up-To-Date" mit unseren Newslettern!

PHP Newsletter
PHP Trainingsletter


PHP Releases



powered by Hetzner

top Alle Rechte vorbehalten. © Dynamic Web Pages 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 top

  Seitenaufbau in 0.041 Sekunden