Open josemon123 opened 7 years ago
TypeError Argument 1 passed to yii\base\View::{closure}() must be an instance of Wordpress, instance of monitorbacklinks\yii2wp\Wordpress given
this is the used code
$blogPosts = Yii::$app->blog->cache(function (Wordpress $blog) { // ... queries that use query cache ... return $blog->noCache(function (Wordpress $blog) { // this query will not use query cache return $blog->getPosts(); }); });
TypeError Argument 1 passed to yii\base\View::{closure}() must be an instance of Wordpress, instance of monitorbacklinks\yii2wp\Wordpress given
this is the used code