Heim  >  Artikel  >  Backend-Entwicklung  >  swoole setGlobal 方法找不到 和 swoole + phalcon 整合问题

swoole setGlobal 方法找不到 和 swoole + phalcon 整合问题

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

swoole版本 1.8.10 php版本 7.0.10 phalcon 3.0

第一个问题,在使用swoole http server时,swoole_http_server->setGlobal,报找不到该方法,怎么解决?

第二个问题,swoole + phalcon整合的问题,目前我想的是,只要把$request里面的值赋值到$_GET等几个全局变量,是否就可以了?是否还有其他需要处理的地方,请有经验的同学,指点下。如果不用问题一的setGlobal方法,应该怎么整合?

还有是问下,是用swoole+phalcon好,还是用swoole framework好?

回复内容:

swoole版本 1.8.10 php版本 7.0.10 phalcon 3.0

第一个问题,在使用swoole http server时,swoole_http_server->setGlobal,报找不到该方法,怎么解决?

第二个问题,swoole + phalcon整合的问题,目前我想的是,只要把$request里面的值赋值到$_GET等几个全局变量,是否就可以了?是否还有其他需要处理的地方,请有经验的同学,指点下。如果不用问题一的setGlobal方法,应该怎么整合?

还有是问下,是用swoole+phalcon好,还是用swoole framework好?

这个纯看个人爱好

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn