Giter Site home page Giter Site logo

simple-phalconapi's Introduction

Simple-PhalconApi

感谢phalconCms 作者的https://github.com/KevinJay/PhalconCMS

顺便作者QQ群号:150237524 大家也可以一起来讨论交流phalcon

主要对框架改造,封装http返回信息,与框架简化处理,一切还是按原来CMS操作哦!

后期有时间会重构框架

这里主要是对多模块进行说明PHQL模型识别 详情请看博客:http://blog.csdn.net/ycc297876771/article/details/78117009 如何进行多模块的模型定位

注:后台暂时没用phalcon,一般使用其做http协议api接口

配置如下 根据cgi接口不同,请适当修改配置

server {
    listen 80;
    server_name phalcon.cc;
    root "E:\xxxxxxx\project\public";
    index index.php index.html index.htm;

    location / {
        if ($request_uri ~ (.+?\.php)(|/.+)$ ) {
            break;
        }
    
        if (!-e $request_filename) {
            rewrite ^/(.*)$ /index.php?_url=/$1;
        }
    }

    location ~ \.php {
        try_files     $uri =404;
      
      fastcgi_pass  127.0.0.1:9000;
      fastcgi_index /index.php;

      include fastcgi_params;
      fastcgi_split_path_info       ^(.+\.php)(/.+)$;
      fastcgi_param PATH_INFO       $fastcgi_path_info;
      fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }

    access_log  "E:\xxxxx\log\access.log";
    error_log   "E:\xxxxx\log\error.log";

}

后台地址 http://yourhost/admin 访问后台 admin 654321

前台 demo: http://yourhost/api/sendSms

其他的使用方法参考 https://www.marser.cn

如不需要后台功能,保留file表就可以了(文件上传会使用到)

redis注入服务都是手动注入,请详细参考下,phalcon的redis组件功能可能不够用

simple-phalconapi's People

Contributors

billmi avatar

Stargazers

 avatar  avatar Small Martin avatar  avatar aegean avatar hiRainn avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.