PEARWeb and HTML output from methods/functions

From: Date: Thu, 20 Jan 2005 09:17:20 +0000
Subject: PEARWeb and HTML output from methods/functions
Groups: php.pear.webmaster 
Request: Send a blank email to pear-webmaster+get-3765@lists.php.net to get a copy of this message
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? Regards, Toby [1] http://cvs.php.net/diff.php/pearweb/include/Damblan/Trackback.php?ws=0&r1=1.4&r2=1.5&ty=u -- Tobias Schlitt GPG Key: 0xA6529579 a passion for php http://www.schlitt.info Like to say "thank you"? - http://pear.php.net/wishlist.php/toby

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