Re: PEARWeb and HTML output from methods/functions

From: Date: Thu, 20 Jan 2005 09:18:27 +0000
Subject: Re: PEARWeb and HTML output from methods/functions
References: 1  Groups: php.pear.webmaster 
Request: Send a blank email to pear-webmaster+get-3766@lists.php.net to get a copy of this message
On Thu, 20 Jan 2005 04:17:20 -0500 tobias@schlitt.info (Tobias Schlitt) wrote: > Hi folks! > > I once discussed with Pierre, that HTML output should not happen > inside a method/function on PEARWeb. For that, I moved the output > of the trackback lists from Damblan_Trackback::printList() to > package-info.php ([1]). > > On the one hand I agree with Pierre, that HTML output should stay > in the main files (kind of "template" approach), on the other, I > would like to have thne list generation stuff for other pages > (e.g. a trackback-overview.php) inside a method to re-use it. > > What's your opinion on that? Where is exactly the problem? Fetch the trackback datas, display it. I doubt you can use the exact same layout everywhere. or use CSS? The outpout format is then restricted but not the way it looks. --Pierre

« previous php.pear.webmaster (#3766) next »