ixaya/manager

一个HMVC框架,CodeIgniter的扩展

1.0.0 2024-08-27 01:34 UTC

This package is auto-updated.

Last update: 2024-10-02 00:48:09 UTC


README

# Ixaya / Manager 基于 HMVC 和 Code Igniter 的框架,用于创建后端和完整网站

关于此包

Ixaya Manager 是一组文件、库和模块,允许您使用 CodeIgniter 来构建具有登录功能的后端,或者如果您愿意,可以构建完整的网站。

特性

  • 通过 Composer 升级 CodeIgniter(始终使用最新版本)
  • 使用 shell 脚本运行项目(Web 服务器)(开发期间无需安装 Apache 或 Nginx)(https://:8000
  • HMVC
  • 不同模块有不同的文件夹:modules/adminmodules/frontned等。
  • 支持 MySQL、PostgreSQL、MSSQL、Sqlite 或 CodeIgniter 3 支持的任何数据库。
  • 每个模型有不同的数据库连接/技术。(您可以有从 PostgreSQL 加载数据库的模型,另一个模型可以从 MySQL 加载数据库。
  • 响应式主题(SB Admin 2 模板用于后端)
  • 受保护的登录管理员模块
  • 创建 REST API 的示例
  • 发送原生 Apple 推送通知或使用 Firebase 的 Android 示例
  • 生产测试
  • try { } catch { } 登录以处理错误(比 CodeIgniter 的改进)
  • 从公共目录安全地应用应用文件夹。

如何安装

要安装 Manager,您需要

OSX 上的分步指南

  • 安装 Homebrew /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • 安装 Git brew install git
  • 安装 PHP(5.4+)brew install php54brew install php72
  • 安装 Composer brew install composer
  • 克隆存储库 git clone https://github.com/Ixaya/Manager.git
  • 使用 composer 更新包 composer install
  • 运行服务器 sh bin/server.sh

Windows 上的分步指南

  • 安装 Git https://git-scm.cn/download/win
  • 安装 PHP(5.4+)https://windows.php.net/download/
  • 安装 Composer https://composer.php.ac.cn/download/
  • 克隆存储库 git clone https://github.com/Ixaya/Manager.git
  • 使用 composer 更新包 composer install

应用程序结构

根文件夹结构

我们建议您创建一个名为 app 的文件夹,并在其中检查项目。

  • composer.json
  • application/
  • public/
  • bin/

公共文件夹

  • public/
  • public/media/ 这里的所有文件都是从您的用户上传的
  • public/assets/{module}/js
  • public/assets/{module}/css
  • public/assets/{module}/images
  • public/assets/{module}/videos

应用程序文件夹

  • application/
  • application/views/ 全局视图
  • application/third_party
  • application/modules 所有模块所在位置
  • application/models 全局模型
  • application/migrations
  • application/libraries 全局库
  • application/language 全局语言
  • application/hooks 全局钩子
  • application/helpers 全局助手
  • application/database
  • application/controllers 全局控制器
  • application/config 应用程序配置
  • application/cache

模块文件夹

在模块文件夹内,您可以有任何位于应用程序内部的文件夹,例如:模型、视图、控制器

  • application/modules
  • application/modules/{module}/views
  • application/modules/{module}/controllers
  • application/modules/{module}/models
  • application/modules/{module}/libraries
  • application/modules/{module}/language
  • application/modules/{module}/.... 更多内容

更多文档即将发布...