Home  >  Article  >  Backend Development  >  swoole setGlobal method cannot be found and swoole + phalcon integration problem

swoole setGlobal method cannot be found and swoole + phalcon integration problem

WBOY
WBOYOriginal
2016-08-25 10:37:211014browse

swoole version 1.8.10 php version 7.0.10 phalcon 3.0

The first question is, when using swoole http server, swoole_http_server->setGlobal reports that the method cannot be found. How to solve it?

The second question is about the integration of swoole + phalcon. What I am currently thinking is, is it enough to just assign the value in $request to several global variables such as $_GET? If there is anything else that needs to be dealt with, please give some advice from experienced students. If the setGlobal method in question 1 is not used, how should it be integrated?

I would also like to ask, is it better to use swoole+phalcon or swoole framework?

Reply content:

swoole version 1.8.10 php version 7.0.10 phalcon 3.0

The first question is, when using swoole http server, swoole_http_server->setGlobal reports that the method cannot be found. How to solve it?

The second question is about the integration of swoole + phalcon. What I am currently thinking is, is it enough to just assign the value in $request to several global variables such as $_GET? If there is anything else that needs to be dealt with, please give some advice from experienced students. If the setGlobal method in question 1 is not used, how should it be integrated?

I would also like to ask, is it better to use swoole+phalcon or swoole framework?

This is purely a matter of personal preference

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn