Re: DB_DataObject and Structures_DataGrid integration

From: Date: Wed, 11 Aug 2004 22:56:52 +0000
Subject: Re: DB_DataObject and Structures_DataGrid integration
References: 1 2 3 4 5 6  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-32570@lists.php.net to get a copy of this message
On Thu, 12 Aug 2004 00:51:52 +0200, Markus Wolff <wolff@21st.de> wrote: > Olivier Guilyardi wrote: > > I believe this is related to the FormBuilder. > > Basically you could already use FormBuilder for the task you describe, > as long as you don't try to make more than one row in the grid editable > at once (ASP.NET doesn't do that as well). > What you would need to do is take the form object FormBuilder generated > and apply a custom form renderer that will render the form as a table > row, using the same settings as all the other rows in your DataGrid. > > Although this sounds easy in principle, it might take quite some effort > to make this a generic solution. But the needed components are all there > and ready. > Already done. Check out the Horiz renders here: http://www.reversefold.com/PEAR/DB_DataObject_FormBuilder_Frontend/src/DB/DataObject/FormBuilder/Frontend/ Yeah, I know they're kind of a hack, but they work just fine (it's what Frontend uses in its table view). > > I don't know how far PEAR could go in trying to "clone" .NET. There > > should be > > some in-depth article on the subject. It seems like .NET provides some > > smart features/paradigm with these web controls ; _lots_ of research behind > > it I think. > > Please, please, please do *not* try to clone .NET. It's nice to lend a > few ideas here and there, but don't go any further. PHP is not .NET - > and having to work with .NET in my day job all the time, I think this is > more of an advantage than a weakness. For many tasks, and *especially* > web development, .NET is overly complex, bloated and way too > complicated. Also, .NET tends to over-abstract things. > Sure, you can do all the nice abstraction layers in PHP as well, but > you're bound to run into performance problems rather sooner than later > because unlike .NET, PHP is an interpreted language. Do some benchmarks > with an application using a hand-coded HTML form that inserts its data > with raw MySQL functions and do the benchmark again with a similar form > that uses FormBuilder, which is on top of DataObject, which is on top of > PEAR::DB and you'll see what I mean. > > PHP is *FINE* as it is. Loosely coupled libraries as found in PEAR are > *FINE* as they are. Bundling them together into a framework that fits > your personal development methodology will make you the most powerful > web application developer in the world, no ASP.NET guru will ever be > able to keep up with your development speed! > > (Sorry, I'm currently on vacation and happy to have left the .NET > bullsh** behind me for a few weeks, I just had to get this out :-)) Happy to listen to a little ranting now and then. I agree, we don't have to sompletely clone .NET, but if we follow the plan laid out in this thread we will be abstracting out the data source for DataGrid... > > CU > Markus > > -- > PEAR Development Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > !DSPAM:411a9fce156162015415067! > > -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin--

« previous php.pear.dev (#32570) next »