What is the correct way to bootstrap Drupal with Kohana 3?

Posted by Dave on Stack Overflow See other posts from Stack Overflow or by Dave
Published on 2010-04-01T20:03:48Z Indexed on 2010/04/25 13:13 UTC
Read the original article Hit count: 218

Filed under:
|
|
|

Hi,

I am trying to implement single sign on between an existing Drupal site a Kohana 3 based webapp. Ideally I would like to load Drupal's session information into $GLOBALS using the bootstap:

require_once('../includes/bootstrap.inc');
drupal_bootstrap(DRUPAL_BOOTSTRAP_SESSION);

A post on the Kohana forum suggested that this should be placed in Kohana's index.php, but didn't say where. I've tried right at the start, and just before Kohana's own bootstrap, but both result in a White Screen of Death.

Changing the bootstrap level to DRUPAL_BOOTSTRAP_CONFIGURATION works, but the session data isn't loaded. Any bootstrap level above DRUPAL_BOOTSTRAP_ACCESS results in a WSOD.

If anyone has any ideas I'd really appreciate it!

© Stack Overflow or respective owner

Related posts about kohana-3

Related posts about drupal-6