Which is best framework type I’ve use from strategic point (I don’t want to migrate my codes after some years because of shutting down the project… I’m desktop/mobile dev. and I feel safe with Qt) :
A- Custom WordPress framework:
B- Framework to create plugins for WordPress:
Most of the above frameworks lack of documentation/demos and most of them don’t support UI controls like usual web frameworks (I love Vaadin too much but unfortunately it’s Java based).
]]>Any help appreciated. Please do a favour for me.
https://www.ads-software.com/extend/plugins/yii-bridge/
]]>https://www.ads-software.com/extend/plugins/yii-bridge/
]]>Options are Yii and WPMVC.
I am charmed of Yii so I tried to integrate Yii in my WordPress site but the articles that explain the procedure are too cryptic for me.
I read: https://www.yiiframework.com/wiki/322/integrating-wordpress-and-yii-still-another-approach-using-yii-as-the-router-controller/#hh1
and
https://www.yiiframework.com/wiki/382/integrating-wordpress-and-yii-working-out-the-details
But I got lost (it is becoming like Drupal).
Is there a goo tutorial?
]]>I’m trying to use wordpress as manual of one web app and also to share some private files with the users. The idea is the app retrive the posts and display inside. I tried to use this code in one controler
try
{
spl_autoload_unregister(array(‘YiiBase’,’autoload’));
echo “xxxx”;
require(‘/wiki/wp-blog-header.php’);
echo “xxxx1”;
/*
$posts = get_posts(‘order=ASC&orderby=post_title’);
echo ‘dasd’ . count($posts);
foreach ($posts as $post) : start_wp();
the_date(); echo “”;
the_title();
the_excerpt();
endforeach;*/
spl_autoload_register(array(‘YiiBase’,’autoload’));
}
catch (Exception $e) {
echo “xxxxsss111”;
spl_autoload_register(array(‘YiiBase’,’autoload’));
echo var_dump($e);
Yii::app()->end();
//throw $e;
}
Yii::app()->end();
But the page fails during the “require”. Can anyone give some ideas, what i’m doing wrong?
The site structure is:
www.xpto.com => base site app
www.xpto.com/wiki => manual
THanks
]]>The WP site works. An integration test I made in a fresh php file works. But once I put the code into my Yii based code, I get the error “Error establishing a database connection”.
Heres the code snippet I used in my Yii based code:
<?php
spl_autoload_unregister(array('YiiBase', 'autoload'));
define('WP_USE_THEMES', false);
require('wp/wp-blog-header.php');
$posts = get_posts('numberposts=10&order=ASC&orderby=post_title');
foreach ($posts as $post) : start_wp(); ?>
<?php the_date(); echo "<br />"; ?>
<?php the_title(); ?>
<?php the_excerpt(); ?>
<?php
endforeach;
spl_autoload_register(array('YiiBase', 'autoload'));
?>
To avoid the WP and Yii autoloader from colliding, I added the calls to spl_autoload_unregister and spl_autoload_register. I’ve tried closing the Yii framworks DB connection before integrating WP, but with no luck.
My hope is that someone in this forum would have an idea as to how to solve this problem.
]]>