Re: Structures_DataGrid with Smarty?

From: Date: Thu, 17 Nov 2005 15:28:03 +0000
Subject: Re: Structures_DataGrid with Smarty?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21967@lists.php.net to get a copy of this message
Josh Santangelo wrote: > I'm looking into Structures_DataGrid, and am seeing that is has a Smarty > renderer, but the user docs don't really say how to use it. Just like any other renderer. Calling $dg->render() will call the display() method of the smarty object. If you do not want that, use $dg->renderer->getSmarty() to get the smarty object (e.g. if you want to do more things with the object before the display call). > And then in searching for it, I find things such as this: > > > http://www.codecomments.com/PHP_Pear_Developers/message678892.html There will be a refactoring of the current code, that's right. But a SDG is in beta state there won't be any BC breaks (maybe some little ones, but this is discouraged). > http://pear.php.net/bugs/bug.php?id=5723 What's the problem here? Okay, there was a bug in the Smarty renderer, but it was fixed and code errors (especially in packages that have not stable status) are always possible. Conclusion: If you like the concept of SDG, then use it. Maybe you will have to do some minor changes in your code after the next release, but this is very unlikely. Mark

« previous php.pear.general (#21967) next »