Giter Site home page Giter Site logo

getyii's Introduction

说明

你现在看到的是全新版本的 GetYii 之前的版本我放在 V1 分支上面了,那个版本以后可能就不会更新了。 「doc/images」文件夹里面有截图,你们可以看一下。

全新的 GetYii 只专注于社区,现在基本功能已经 OK 了,以后我们会不断完善的。

项目搭建

  1. 本项目是基于 Yii2 高级应用模板开发的,参考文档 高级应用模板
  2. 配置环境的时候你要配置两个虚拟目录,对于前台指定 frontend/web/ ,访问URL为 http://www.xxx.com/ (域名自己随便配置)
  3. 对于后台指定 backend/web/ ,访问URL为 http://admin.xxx.com/ (域名自己随便配置)
  4. git clone 一份代码之后要在项目根目录下在终端运行 php init 初始化一下。
  5. 手动新建一个数据库名为 getyii,然后更该 common/config/main-local.php 里面的 dbname=getyii
  6. 在终端输入命令 curl -sS https://getcomposer.org/installer | php 安装 PHP 的 Composer
  7. 在终端输入命令 mv composer.phar /usr/local/bin/composer 添加环境变量。
  8. 在终端输入命令 composer global require "fxp/composer-asset-plugin:~1.0" 安装 composer-asset-plugin 来管理静态资源文件。
  9. 最后在终端输入命令 composer update 更新包。
  10. 在终端输入命令 yii migrate (windows下面可能是 php yii migrate 命令)初始化数据。
  11. 把 user 表中的某用户值 role 字段值改为20,即为前台管理员,目前可以给帖子加精华,不能登录后台。
  12. 把 user 表中的某用户值 role 字段值改为30,即为超级管理员,可登录后台。

1. 在终端输入命令 yii migrate --migrationPath=@funson86/setting/migrations 初始化数据。

文档和手册

  1. Yii2手册
  2. 中文 Composer 手册

安装遇到问题怎么办?

建议在官网的社区版块新手提问下面提问,我会抽空亲自回答。请最大可能的把问题描述清楚,以免浪费我们彼此的时间。

交流群

  • Yii2 **交流群:343188481
  • Get√Yii 核心开发者群:321493381(本群只接受参与本站开发的 Yiier)

感谢

  • 感谢 Ruby-China 的开源代码。
  • 感谢 PHPHub 的开源代码。
  • 感谢 huajuan 的开源代码。
  • 最后再感谢一下女朋友的支持 <(▰˘◡˘▰)>。

PS:

如果你暂时无法使用 composer 的话,访问 http://git.oschina.net/forecho/getyii-vendor 下载 zip 文件解压就可以用了。 但是本人不推荐这种做法。

getyii's People

Contributors

forecho avatar 104260033 avatar lichunqiang avatar

Watchers

 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.