Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Well, something you could do is to create a CMS extension which handles a route in the CMS and then delegates the result to the underlying application.</p> <p>To give you an example, lets think in drupal 7. In this CMS you may create a module with a folder that contains two files: one for data about your module and one for the module's code.</p> <p>my_module/my_module.info &lt;-Module's data</p> <pre><code>name = My Module description = A description of what your module does. core = 7.x </code></pre> <p>my_module/my_module.module &lt;- Module's code </p> <pre><code>&lt;?php /** * Respond to a drupal's URL with a callback. */ function my_module_menu() { $menu = array(); $menu["App"] = array( "page callback" =&gt; "my_module_run", "access callback" =&gt; true, ); return $menu; } /* * Do the job */ function my_module_run() { ob_start(); // Call your application by including it's index.php file or whatever // operation needed..... // Capture the result of the application. $result = ob_get_clean(); // If the request is ajax, echo the result. if(!empty($_SERVER['HTTP_X_REQUESTED_WITH']) &amp;&amp; strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') { echo $result; } else { //Otherwise, return it, so it is rendered as part of the // CMS content. return $result; } } ?&gt; </code></pre> <p>With this basic code you may "integrate" your applications to drupal, all you need to do is to install it as any drupal module and then go to htt://your-cool-site/App to execute your application. </p> <p>More on drupal module authoring <a href="http://drupal.org/node/1074362" rel="nofollow">here</a>.</p> <p>I hope it helps :) </p> <p><a href="https://github.com/JeyDotC/Hirudo" rel="nofollow">Here</a> is a framework that works having this in mind, it has bindings to drupal (6, 7 and 8) and joomla.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload