News Feed
Sections




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

Ryan Mauger's Blog:
Keeping your html valid with Zend Framework, Tidy and Firebug
January 29, 2010 @ 13:54:38

Ryan Mauger has a new post today looking at how to combine the Tidy extension for PHP and Firebug with a Zend Framework application to keep your HTML neat and valid with a handy bit of feedback for debugging.

With Zend Framework there is an easy way to ensure that you always create valid HTML in your applications. This involves the use of a simple Front Controller Plugin, and the php Tidy component. [...] So you can use tidy for filtering user input, what about using it to effectivly clean my documents and ensure my output is always valid?

He starts off with the pieces of the puzzle you'll need - the front controller plugin for the Zend Framework application, using the Tidy extension to filter your HTML and combining the two to make a dispatchShutdown() call to make the transformations. Firebug comes in to help with logging the issues Tidy found so you can correct them.

1 comment voice your opinion now!
zendframework tidy extension firebug tutorial


blog comments powered by Disqus

Similar Posts

Sebastian Bergmann's Blog: php|works 2006

DevShed: Working with Attributes and CDATA Sections with the DOM XML Extension

Zend Developer Zone: Zend Webinar Wednesdays: Zend Framework 1.0 - An Overview

ZendCasts.com: RESTful Delete with SLIM, jQuery and JSON

Community News: Symfony Framework Makes Some Updates (v.0.6.2 and Content)


Community Events

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


example introduction application release podcast series voicesoftheelephpant community opinion configure framework language php7 conference laravel symfony2 install interview performance api

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