GithubHelp home page GithubHelp logo

phalconfcmvc's Introduction

PhalconFcMvc

####基于C扩展框架Phalcon构建的mvc框架结构,目前已实现应用模块化、Cli处理每个模块的任务。

ps: Phalcon框架安装教程

框架结构如下:
PhalconFcMvc/
     |----app
     |      |----Helpers  //工具类目录
     |      |----Librarys //自定义类库目录
     |      |----Models   //数据模型目录
     |      |----Modules  //模块目录
     |      |      |----Frontend  //前台模块
     |      |      |      |----Controllers //控制器层
     |      |      |      |      |----IndexController.php
     |      |      |      |----Services //服务层
     |      |      |      |----Tasks //任务层
     |      |      |      |      |----MainTask.php //主任务
     |      |      |      |----Views //页面层
     |      |      |      |      |----base //基础目录
     |      |      |      |      |      |----error404.phtml //404错误页
     |      |      |      |      |      |----error500.phtml //500错误页
     |      |      |      |      |----index
     |      |      |      |      |      |----index.phtml
     |      |      |      |----Module.php  //前台模块
     |      |      |----Backend  //后台模块
     |      |      |      |----Controllers //控制器层
     |      |      |      |      |----IndexController.php
     |      |      |      |----Services //服务层
     |      |      |      |----Tasks //任务层
     |      |      |      |      |----MainTask.php //主任务
     |      |      |      |----Views //页面层
     |      |      |      |      |----base //基础目录
     |      |      |      |      |      |----error404.phtml //404错误页
     |      |      |      |      |      |----error500.phtml //500错误页
     |      |      |      |      |----index
     |      |      |      |      |      |----index.phtml
     |      |      |      |----Module.php  //后台模块
     |      |      |----Api  //接口模块
     |      |      |      |----Controllers //控制器层
     |      |      |      |      |----IndexController.php
     |      |      |      |----Services //服务层
     |      |      |      |----Tasks //任务层
     |      |      |      |      |----MainTask.php //主任务
     |      |      |      |----Views //页面层
     |      |      |      |      |----base //基础目录
     |      |      |      |      |      |----error404.phtml //404错误页
     |      |      |      |      |      |----error500.phtml //500错误页
     |      |      |      |      |----index
     |      |      |      |      |      |----index.phtml
     |      |      |      |----Module.php  //接口模块
     |      |----Providers  //供应商
     |      |      |----ModuleProvider.php //模块供应商
     |      |      |----ControllerProvider.php //控制器供应商
     |      |      |----TaskProvider.php //任务供应商
     |      |----Bootstrap.php  //应用入口
     |      |----CliTask.php  //cli任务应用
     |----bootstrap
     |      |----autoload.php //项目自动加载
     |----config
     |      |----app.php //应用配置
     |      |----modules.php  //模块配置
     |----public
     |      |----.htaccess
     |      |----index.php  //项目入口
     |      |----css
     |      |----files
     |      |----img
     |      |----js
     |      |----temp
     |----storage  //缓存
     |      |----cache //缓存目录
     |      |----logs //日志目录
     |      |     |----app  //app日志目录
     |      |     |----cli  //cli日志目录
     |----vendor //composer三方类库目录
     |----.htrouter.php
     |----.htaccess

1、composer update

2、创建storage目录,并设置777权限

phalconfcmvc's People

Contributors

flycorn avatar

Stargazers

NedRen avatar moment sy 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.