You aren’t really going to have much luck integrating a PHP app into a
Rails app, short of using an iframe as suggested above.
I’m currently working on a Rails website which uses a punbb forum and
the simplest way of doing it was to create a punbb skin that wraps the
forum in the sites layout/navigation and then run the forum off of a
subdomain (forum.foo.com) next to the main site (www.foo.com). The
only downside is the punbb forum is duplicating your rails layout so
it means two things to maintain and the navigation on the forum skin
is also hardcoded to point at www.foo.com/somelink which is also more
maintenance. Its not a huge site though so not much of an issue.
In fact, we ARE integrating the two in some ways, because part of the
Rails app needs people to log in to access it and the client has
requested they can use the same credentials for both the forum and
this part of the Rails app. We have accomplished this by creating a
new database connection in database.yml for the punbb database,
creating a new class that extends ActiveRecord::Base called Punbb
which is set to use the punbb database, then extending the Punbb class
to create models for the tables in the Punbb database that we need to
use, in this case just the user table. Now we can authenticate against
Punbb’s user table easily.
On 3/4/06, Norman T. firstname.lastname@example.org wrote:
Rails mailing list