We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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(); }); });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: