Just curious.... anyone doing any local modifications to Koha using PHP?
We'd like to. My experience is with ColdFusion and PHP. Since Perl is still really foreign to me, if I want to extend Koha's functionality I need to think about using an alternative like PHP. That's fine if I just want to have a separate page for interacting with the database--I can query to my heart's content without fear of messing anything up. But futher than that I get a little nervous. The thing I can't wrap my brain around, though, is how to get php and Perl together in the same page--if it's even possible. But I haven't done any real experimentation. Top of my Perl+PHP wishlist: Dynamic navigation which recognize which page you're on and build the appropriate menus. -- Owen ---- Nelsonville Public Library Koha 2.0.0-pre2-R2
On August 1, 2003 12:00 pm, Owen Leonard wrote:
Top of my Perl+PHP wishlist: Dynamic navigation which recognize which page you're on and build the appropriate menus.
-- Owen Nelsonville Public Library Koha 2.0.0-pre2-R2
Owen, This is interesting featurality to my mind. Where would you like to see the definitions of the menu elements stored? In the database, or as text files (xml, say) to be dynamically reassembled on demand? I could probably sketch up an implementation for you, if you like. Feel free to contact me off-list, if you'ld like to talk further. Cheers, Erik -- Erik Stainsby erik.stainsby@modern-alchemy.net Modern Alchemy a Library Design firm http://www.modern-alchemy.net/
Owen Leonard <oleonard@athenscounty.lib.oh.us> wrote:
Top of my Perl+PHP wishlist: Dynamic navigation which recognize which page you're on and build the appropriate menus.
I think I was told that such things would be possible with Apache 2, but last I checked, there was a range of problems with using PHP as a module still. You also end up running two language interpreters for each page, which might hurt performance. Finally, the general quality of PHP code seems to be a lot lower than Perl (and I'm often unimpressed by some Perl programming stunts). Longer term, I want to see koha interacting with other systems over a nice API, which would make it "not too difficult" to build front-ends or integrate it with other systems. But, there's already nothing to stop one from building a more changeable navigation system if one knows just enough perl to be able to change the C4::Template module (I think... working from memory rather than source code... bad me... I'm at home and just checked email and this tickled me). That's really not an awful lot of perl to learn if you can already program in other imperative languages like BASIC. The "perltut" and "perlboot" manual pages are a start, I think, but maybe not the best one. Perhaps people have URLs to throw into the wiki? -- MJR/slef My Opinion Only and possibly not of any group I know. http://mjr.towers.org.uk/ jabber://slef@jabber.at Creative copyleft computing services via http://www.ttllp.co.uk/ Thought: Edwin A Abbott wrote about trouble with Windows in 1884
participants (3)
-
Erik Stainsby -
MJ Ray -
Owen Leonard