Hi Group--
I’ve been asked to integrate an existing "stand alone" php application into
a friend’s MODx site. Will I have to re-implement this application to run
within the MODx framework (e.g. modules), or is there a way to use the
current code "as is"?
Thanks!
It depends on the application, but as a rule you should be able to include the existing code "as is". Modules are basically just includes in the manager context, so that’s not a difficult bridge to cross. Just keep in mind that if you include PHP code from a snippet or plugin that you’re not executing it globally, so you might need to make some changes to correct for that (oh and if your existing PHP application relies on register_globals being set to on you should recode it not to do that).
Thanks! Is there any documentation or online example that shows an example using an "external" web application within the MODx framework? That is, having the content provided by the application displayed as a MODx "page".
For example, web applications tend to provide the header information for cookies, etc and html head blocks to load javascript files, but the content of a MODx page is provided in the context of the MODx environment.
Thanks.
-
☆ A M B ☆
- 24,524 Posts
If that is the case, you can always load it into a document that has no template. Use its own css (or however it styles itself) to style it to look like your site.