Re: DB_DataObject and Structures_DataGrid integration
| From: | Markus Wolff | Date: | Wed, 11 Aug 2004 22:51:52 +0000 |
| Subject: | Re: DB_DataObject and Structures_DataGrid integration | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-32569@lists.php.net to get a copy of this message | ||
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.
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 :-)) CU Markus