-
Notifications
You must be signed in to change notification settings - Fork 127
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
Yii2 #1
Comments
First - you dont need put bot code inside controller. a) You can put yii-related initialization inside bot hook web/bot.php:
b) disable csrf inside beforeAction and disable debug mode:
Example "inside controller":
|
Sorry for stoling your time, i'm new in yii2
and i have the error:
Seems that bot is working, but cant fly right response |
Sory, but i unable to read this spaghetti code. Please use pastebin or gist.
Note you must specify |
How can i integrate viber-bot-php into yii2 action. Many ways, many errors
500
400
i tried _csrf off
now i hav ActiveControoler and with message 'Response content must not be an array.'
In standalone php app the work is OK.
The text was updated successfully, but these errors were encountered: