Load WP Core in another Framework (SHORTINIT WP_QUERY)
-
Hey guys
I’m trying to integrate WP Core in the Yii Framework, to not have to port it (too expensive).
So, after configuring Yii Framework to allow wp-config inclusion, I’ve managed the following:define( 'ABSPATH', $this->wordpress_path . '/' ); define('WP_USE_THEMES', false); define('WP_ALLOW_MULTISITE', false); define('SHORTINIT', true); define( 'TABLE_PREFIX', 'wp_8_' ); require_once( ABSPATH . 'wp-config.php' );
I have cofigure wp-config in order to it allow me to setup this constants.
Then fellows comes the problem. I’m able to load it in SHORTINIT mode. But when it comes to full mode I havent had luck (wp_not_installed or another dont let me pass).
Well, well, finally the question. I’m trying, in these scenario, to load after wp-config SHORTINIT the WP_Query class, or some other stuff I should eventually need.
I started including “INC + query.php” but it’s like trouble finding.. there must be too many code behind it (taxonomies are the first).
I’ll keep on tryin, but if there’s a good soul to point something out in that matter (wp_query loading process), would be appreciated ??
Cheers!
- The topic ‘Load WP Core in another Framework (SHORTINIT WP_QUERY)’ is closed to new replies.