Skip to content
New issue

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

Object of class yii\widgets\Pjax could not be converted to string #139

Open
marco90a opened this issue Nov 14, 2022 · 0 comments
Open

Object of class yii\widgets\Pjax could not be converted to string #139

marco90a opened this issue Nov 14, 2022 · 0 comments

Comments

@marco90a
Copy link

marco90a commented Nov 14, 2022

Hi, I'm trying to use Pjax inside twig but this but in error

What steps will reproduce the problem?

Object of class yii\widgets\Pjax could not be converted to string

{{ Pjax.begin({'id' : 'countries'}) }}
                                    1
{{ Pjax.end() }}

What's expected?

Page building with the PJAX module

What do you get instead?

Object of class yii\widgets\Pjax could not be converted to string

image

Additional info

Q A
Yii version 2.0.46
Yii Twig version 2.4.2
Twig version
PHP version 8.1.7
Operating system W11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant