man_optimism

man_optimism

这家伙有点懒,还没写个性签名!

  • 财富值35
  • 威望值0
  • 总积分145

个人信息

  • 关注了
  • 回复了 的评论

    您好,按照您的步骤,遇到哪下需求:

    Integrity constraint violation – yii\db\IntegrityException
    
    SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'pid' cannot be null
    The SQL being executed was: INSERT INTO `pop_category` (`pid`, `name`, `title`, `is_nav`, `sort`, `created_at`, `updated_at`) VALUES (NULL, '个人资料', '个人资料', 1, 0, 1468825399, 1468825399)
    Error Info: Array
    (
        [0] => 23000
        [1] => 1048
        [2] => Column 'pid' cannot be null
    )
    ↵
    Caused by: PDOException
    
    SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'pid' cannot be null
    
    in D:\phpStudy\WWW\yii2cmf\vendor\yiisoft\yii2\db\Command.php at line 844
    

    好的,谢谢。觉得你这个还是不错的,后台管理的精细度由自已来处理。

  • 回复了 的评论

    composer vendor/bower-asset 目录问题,修改为vendor/bower解决。建议楼主更新。

    请问我怎么处理呢?我是按照您给的代码进行的操作呢。

  • 您好,按照您的步骤,遇到哪下需求:

    Integrity constraint violation – yii\db\IntegrityException
    
    SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'pid' cannot be null
    The SQL being executed was: INSERT INTO `pop_category` (`pid`, `name`, `title`, `is_nav`, `sort`, `created_at`, `updated_at`) VALUES (NULL, '个人资料', '个人资料', 1, 0, 1468825399, 1468825399)
    Error Info: Array
    (
        [0] => 23000
        [1] => 1048
        [2] => Column 'pid' cannot be null
    )
    ↵
    Caused by: PDOException
    
    SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'pid' cannot be null
    
    in D:\phpStudy\WWW\yii2cmf\vendor\yiisoft\yii2\db\Command.php at line 844
    
  • composer vendor/bower-asset 目录问题,修改为vendor/bower解决。建议楼主更新。

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

    Unknown Property – yii\base\UnknownPropertyException
    
    Getting unknown property: common\models\Article::author
    
  • 收藏了源码
    基于yii2的内容管理框架
助理 等级规则
145/200
资料完整度
10/100
用户活跃度
0/100

Ta的关注

4

Ta的粉丝

1

Ta的访客

2