Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

falconplus - for phalcon+plus

NotificationsYou must be signed in to change notification settings

bullsoft/falconplus

Repository files navigation

Gitter

  1. 先安装 phalcon, phalconplus, yar, msgpack

  2. mkdir /tmp/compiled/

  3. git clonehttps://github.com/bullsoft/falconplus.git

git submodule update --init --recursive

  1. Nginx配置
server {listen80;server_name demo.phalconplus.com;access_log  logs/demo.phalconplus.access.log main;index index.php index.html index.htm;set$root_path'/Users/guweigang/github/bullsoft/falcon/demo/public';root$root_path;try_files$uri$uri/ @rewrite;location@rewrite{rewrite^/(.*)$/index.php?_url=/$1 last;      }location ~\.php{fastcgi_pass 127.0.0.1:9000;include fastcgi_params;fastcgi_param SCRIPT_FILENAME$document_root$fastcgi_script_name;      }location ~*^/(css|img|js|flv|swf|download)/(.+)${root$root_path;      }location ~/\.ht{deny all;      }   }

演示

如果你想调用PhalconPlus的服务,你也可以这样开始:

<?php$client =new \Yar_Client("http://server.phalconphp.org");$client->SetOpt(YAR_OPT_CONNECT_TIMEOUT,3);$result =$client->callByObject(array("service" =>"\\Demo\Server\Services\\Demo","method" =>"demo","args" =>array("foo" =>"hello","bar" =>"world","user" =>array("username" =>"guweigang","password" =>"123456",        ),    ),));echojson_encode($result);

[8]ページ先頭

©2009-2025 Movatter.jp