News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Maurice Fonk's Blog:
Smarty and the Zend Framework
May 11, 2007 @ 08:18:00

As Cal Evans points out on the Zend Developer Zone today, Maurice Fonk has created a nice little tutorial on using the Smarty templating system to help manage the output of a Zend Framework application.

When I started using the Zend Framework a while ago now, I read this article on the zend developer zone. While it describes a decent implementation, I have some problems with it.

[...] So I decided to come up with my own implementation. It follows Zend_View as closely as possible, while still retaining standard Smarty behavior. That means that I have overwritten as little as possible, and added nothing.

In his method, he's created a protected _run() function that, given the template to use by the Zend_View object for the page, goes and fetches it and renders the page. He includes an example to show how it would work in a more "real life" situation.

0 comments voice your opinion now!
smarty template zendframework view zendview tutorial smarty template zendframework view zendview tutorial


blog comments powered by Disqus

Similar Posts

Rob Allen's Blog: Zend Framework Tutorial for ZF v0.8

Stefan Mischook's Blog: Turning on display_errors in WAMP - Video Tutorial

WebReference.com: The Building Blocks: Data Types, Literals, Variables, and Constants - Part 2

Lior Messinger's Blog: 5 Frameworks Every Software Architect Should Consider

Padraic Brady's Blog: Example Zend Framework Blog Application Tutorial - Part 9 PDF Download


Community Events

Don't see your event here?
Let us know!


podcast introduction release interview laravel wordpress opinion voicesoftheelephpant series laravel5 middleware community conference language api framework development library extension unittest

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework