yidashi 2016-03-03 11:55:43 54076次浏览 68条评论 42 12 0

demo地址 demo地址
demo后台地址: demo后台地址 帐号 demo 密码 111111

现有功能:

  • rbac权限管理

  • 系统配置,管理员操作日志等

  • 文章,单页,评论,弹幕等

  • 数据库备份还原

  • 国际化 主题 皮肤

  • 可拆卸插件

  • todo

获取源码

获取源码

使用

composer install
php yii app
php yii serve

访问

前台 http://localhost:8080

后台 http://localhost:8080/admin

截图:

QQ20160706-0@2x.png
QQ20160706-1@2x.png

觉得很赞
  • 评论于 2016-04-28 19:40 举报

    SQL 查询:
    我命令导入错误,直接导入sql语句报错:

    INSERT INTO  `pop_category` 
    VALUES ( 1,  '默认', 0, 1449050838, 1449050838,  'moren' ) ;
    
    
    MySQL 返回: 文档
    
    #1136 - Column count doesn't match value count at row 1 
    

    能给一份正常的init.sql给我们吗

    1 条回复
    评论于 2016-04-29 17:17 回复

    更新了。如果还有不完整的直接私信我,加了新功能忘了更新数据库,不好意思。

  • 评论于 2016-05-02 11:07 举报

    我自己也搞了一个 不过是用 H-ui 搞了的 看来哥们搞的不错 细节上做的很好 研究下

  • 评论于 2016-05-06 15:31 举报

    用户名和密码不对~~~

  • 评论于 2016-05-18 12:14 举报

    web 下面没有index.php文件啊

  • 评论于 2016-05-18 12:15 举报

    演示地址后台登录不了 密码错误

    2 条回复
    评论于 2016-05-18 15:50 回复

    http://www.51siyuan.cn/admin/ demo 111111可以啊,刚登了试了试

    评论于 2016-05-18 23:55 回复

    不能登录

  • 评论于 2016-05-19 00:58 举报

    Invalid Parameter – yii\base\InvalidParamException
    The view file does not exist: E:\web\yii2cmf-master\frontend\views\site\index.php

    9 条回复
    评论于 2016-05-19 10:32 回复

    demo帐号被人禁用了,现在可以了。你说的这个问题不存在的,我还专门重新照着我自己写的文档部署了一遍。如果你是很早前下载的,可能会有问题,你下载最新的试试。抱歉。

    评论于 2016-05-19 10:41 回复

    哦,怎么我下载了你的源码,老是出现下面的问题的:
    Invalid Parameter – yii\base\InvalidParamException
    The view file does not exist: E:\web\yii2cmf-master\frontend\views\site\index.php
    我也是按照你说的步骤做了,执行init初始化,用最新的数据文件init.sql

    评论于 2016-05-19 10:46 回复

    执行./init 也没有用,执行了后是在web目录下产生index.php文件,但是访问时提示的是frontend\views\site\下没有index.php入口文件
    然后我的配置文件frontend/config/main.php也有下面这一句:
    'as ThemeBehavior' => \frontend\components\ThemeBehavior::className()

    评论于 2016-05-19 14:10 回复

    我今天早上刚按照我自己写的步骤一步一步来的,100%没有问题。压根就不需要什么frontend\views\site\index.php。下最新的代码,一步一步来。

    评论于 2016-05-19 16:00 回复

    我是用phpStudy 的nginx作本地服务的,而且你看看你的评论有很多人说到同样的问题。

    评论于 2016-05-19 16:38 回复

    跟apache nginx iis没啥关系。以前有问题,后来更新修复过了。

    评论于 2016-05-19 16:50 回复

    我昨天下载的是2.coding 就出现上面的问题。
    刚刚我再次下载 1.github 重新本地配置就可以了,谢谢了。向你学习。
    但现在进去后台管理在内容管理下面的单页管理会出现错误:
    syntax error, unexpected '['

    1. in E:\web\yii2cmf-master\backend\views\page\index.php at line 26
    
    评论于 2016-05-19 16:57 回复

    不好意思coding忘了更新。。这个错误应该是因为是php版本的问题,你把

    'id',
                [
                    'attribute' => 'use_layout',
                    'value' => function ($model) {
                        $arr = ['不使用', '使用'];
                        return $arr[$model->use_layout];
                    },
                ],
    

    那两行换成这个试试

    评论于 2016-05-20 01:02 回复

    谢谢了,可以了。

  • 评论于 2016-05-20 22:46 举报

    怎么图像和头像都可以上传,但不会显示出来的?查看源码是这样的:<img src="http://127.0.0.1/yii/static/upload/image/20160520/1463753248.jpg">
    而你的站点 http://www.51siyuan.cn/my/profile
    查看源码图像对应的却是这样的:<img src="http://image.51siyuan.cn/FoCjtKUb_3Q8Amdl7hiNfGJ_Tz00"

    , 觉得很赞
  • 评论于 2016-05-31 14:41 举报

    后台出现这个错误

     PHP Core Warning – yii\base\ErrorException
    PHP Startup: Unable to load dynamic library '/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20151012/php_pgsql.dll' - dlopen(/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20151012/php_pgsql.dll, 9): image not found
    

    查了半天都解决不了,我mac 自带的php 没有pgsql.so 自己编译安装有老是出错
    我用mac os x 10.11.4 有大神帮忙吗?感激不尽!

    10 条回复
    评论于 2016-05-31 15:10 回复

    你这是php本身有错误吧。

    评论于 2016-06-01 12:46 回复

    不知道这个pgsql是什么东西 运行别的程序不报错,运行你的就报这个错误,有解决方案吗?

    评论于 2016-06-01 14:51 回复

    pgsql是PostgreSQL数据库的php组件,我压根就没用这个数据库。你确定你用这个php运行别的程序不报错?你别玩我啊。是真的话,我也不知道什么原因。。。抱歉啊

    评论于 2016-06-02 14:12 回复

    数据库文件导入错误init.sql
    静态分析:

    分析时发现13个错误。

    Unexpected character. (near ":" at position 27029)
    Unexpected beginning of statement. (near "DOCTYPE" at position 2)
    Unexpected beginning of statement. (near "html" at position 10)
    Unexpected beginning of statement. (near "html" at position 17)
    Unexpected beginning of statement. (near "lang" at position 22)
    Unexpected beginning of statement. (near ""en"" at position 27)
    Unexpected beginning of statement. (near "class" at position 32)
    Unexpected beginning of statement. (near "" is-copy-enabled emoji-size-boost"" at position 38)
    Unexpected beginning of statement. (near "head" at position 78)
    Unexpected beginning of statement. (near "prefix" at position 83)
    Unexpected beginning of statement. (near ""og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# object: http://ogp.me/ns/object# article: http://ogp.me/ns/article# profile: http://ogp.me/ns/profile#"" at position 90)
    Unexpected beginning of statement. (near "meta" at position 248)
    Unrecognized statement type. (near "charset" at position 253)
    
    评论于 2016-06-02 18:16 回复

    恩。是有问题。更新了下sql文件。

    评论于 2016-06-03 10:38 回复

    好像还是不行,你确定可以了?

    评论于 2016-06-03 10:42 回复

    为了验证你这句话,我又试了一次,貌似是可以。

    评论于 2016-06-03 10:50 回复

    不错。。。。

    评论于 2016-06-04 23:48 回复

    没有这张表 pop_system_log

    评论于 2016-06-05 10:24 回复

    已更新

  • 评论于 2016-06-07 10:48 举报

    dddddddd

    1 条回复
    评论于 2016-06-07 10:51 回复

    eeeeeeee

  • 评论于 2016-06-09 21:02 举报

    您好,现在还可以进去你的后台吗?怎么进不去了呢?

    1 条回复
    评论于 2016-06-09 21:05 回复

    可以啊

  • 评论于 2016-06-09 21:46 举报

    后台新增文章出现这样的错误哦:)

    Unknown Property – yii\base\UnknownPropertyException
    
    Getting unknown property: common\models\Article::author
    
  • 评论于 2016-06-12 15:55 举报

    为什么测试后台进去啥菜单都看不到?

    1 条回复
    评论于 2016-06-12 20:10 回复

    console/migrations/init.sql导入一下。

    感谢反馈bug。migrate有点问题,已经修复了

  • 评论于 2016-06-13 23:02 举报

    谢谢楼主大人,边学边做项目。

  • 评论于 2016-06-21 16:34 举报

    越来越差了,现在下载下来的都用不了

  • 评论于 2016-06-21 17:53 举报

    新部署方法。可以的啊。。。404都来了,站长呢。。

    1 条回复
    评论于 2016-06-22 06:49 回复

    不好意思,现在可以了,之前代码升级造成的错误。

  • 评论于 2016-06-27 17:43 举报

    卡了我一天。数据库导不进去。。PHP Fatal error: Uncaught Error: Call to undefined function env() in D:\phpStudy\WWW\y\common\config\bootstrap.php:17 Stack trace:

  • 评论于 2016-06-28 14:48 举报

    No input file specified. 这个nginx怎么解决的
    首页可以打开
    后台 和内页都打不开

  • 评论于 2016-07-03 14:51 举报

    数据库文件在哪个目录里面啊?

    5 条回复
    评论于 2016-07-03 14:58 回复

    migrate

    评论于 2016-07-03 17:29 回复

    我下载下来后 backend 和 frontend 都没有web目录是怎么回事? vendor目录也没有

    评论于 2016-07-03 17:58 回复

    vendor?要composer install的。web?又不一定非得在backend和frontend里边,在外边呢

    评论于 2016-07-03 20:01 回复

    还有个问题,第三步中我死活也找不到env.example文件在哪, 可否告知一下?

    评论于 2016-07-04 10:21 回复

    根目录

  • 评论于 2016-07-03 22:27 举报

    创建.env文件,复制.env.example里的内容 这是什么意思?

    1 条回复
    评论于 2016-07-04 10:38 回复

    根目录创建.env,或者直接把.env.example改成.env

  • 评论于 2016-07-03 22:27 举报

    Error: SQLSTATE[HY000] [2002] Connection refused 报了这个错

    1 条回复
    评论于 2016-07-04 10:38 回复

    env里没配置数据库

您需要登录后才可以评论。登录 | 立即注册