'Twas brillig, and Johannes Schill at 31/08/10 14:02 did gyre and gimble: > I know this has been up before, but there were no good solution back then: > > Is there a good way to integrate phpbb (or similar software) with zend > framework? What im looking for is to use phpbb's forum features and i > want phpbb to use my zend framework authentication / user handling.
Matthew gives pretty good advice here. I've integrated my ZF application with a couple different CMS's in the past (Drupal, Joomla) and there are always some fun "issues" to deal with (typically I've found that session handling are the most problematic). Thankfully both Drupal and Joomla support authentication plugins and thus it is relatively painless to integrate the auth layer with our ZF app. For the "skinning" mode, we do pretty much what Matthew suggests, but I managed to just create a Zend_Controller_Request object and dispatch it - but ensuring all our templates etc. are stripped down and don't product <html><head> output. We can then work out things like page title and even capture some stuff that should be injected into <head> etc. via the CMS provided methods. This means that the request is always initially handled by the CMS, and not directly via our app. This is fine for me but may not be in your case. This isn't always easy (the CMSs may use defines or variables that conflict with your own etc. but this can be mitigated with good programming practices - no globals, no functions (just static methods of classes to allow for a pseudo namespace - pre php 5.3!), no defines, just class constants etc.). Got it working pretty reliably now with this approach. Not tried it with PHP BB. Col -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited [http://www.tribalogic.net/] Open Source: Mandriva Linux Contributor [http://www.mandriva.com/] PulseAudio Hacker [http://www.pulseaudio.org/] Trac Hacker [http://trac.edgewall.org/]
