Related link: http://www.oreillynet.com/pub/wlg/5885
I’m spending WAY too much time just on the web UI interface to my projects!
I wish I had a good re-usable framework for all these web-apps. Any suggestions?
Rails looks interesting, but I can’t just switch 50,000 lines of PHP over to Ruby for it. I’ve got all my shared classes in PHP already. Maybe I’d use it for a brand new project some day.
PEAR’s HTML_QuickForm looks like it would help with forms, but not a complete solution. Maybe an ingredient to something bigger.
In fact - I’m really into typical templates at ALL — because the way I use PHP is not the typical fashion : I don’t put PHP inside HTML. I have PHP do *everything*, only a small part of which is spitting out some HTML to the browser. Since all my sites are mutli-lingual, with ALL words as a $lang hash/array/dictionary stored in a config file, and since all page-layout is CSS, there’s almost nothing on an HTML page that is *not* dynamic. Just the occasional div, span, ul, li, p, input, etc. My HTML is practically an XML file : just my dynamic values, with some basic identifiying markup tags wrapped around those values. (div id=”cart”, ul id=”menu”) Nothing worth making a static template for.
Again: I really like Mason’s component-approach. Hey I wonder if there’s a way to have PHP do the business-logic, and have Perl/Mason do the display-logic?
I know that millions of hours of brain-power have been spent by smarter folks than me, developing database-driven websites, and they must have created some framework somewhere that matches my needs - but I haven’t found it yet. (Though it’s funny that the two I like the best so far are in Ruby and Perl — c’mon PHP! What’s up with that?)