yidashi / yii2cmf Goto Github PK
View Code? Open in Web Editor NEW基于yii2的cmf管理系统
Home Page: http://www.51siyuan.cn
License: Other
基于yii2的cmf管理系统
Home Page: http://www.51siyuan.cn
License: Other
本地上传图片一切正常 放到服务器上传提示成功 但是就没没有图片 怎么回事啊!! 而且我upload文件夹的权限也给了, 就是没有图片!
The message file for category 'app' does not exist: /web/backend/messages/zh-CN/app.php Fallback file does not exist as well: /web/backend/messages/zh/app.php
exception 'yii\base\ErrorException' with message 'file_get_contents(): Filename cannot be empty' in /web/common/modules/attachment/models/Attachment.php:233
Stack trace:
#0 [internal function]: yii\base\ErrorHandler->handleError(2, 'file_get_conten...', '/web/common/mod...', 233, Array)
#1 /web/common/modules/attachment/models/Attachment.php(233): file_get_contents('')
#2 /web/common/modules/user/controllers/SettingsController.php(63): common\modules\attachment\models\Attachment->makeCropStorage('200', '200', '136', '60')
#3 [internal function]: common\modules\user\controllers\SettingsController->actionAvatar()
#4 /web/vendor/yiisoft/yii2/base/InlineAction.php(55): call_user_func_array(Array, Array)
#5 /web/vendor/yiisoft/yii2/base/Controller.php(154): yii\base\InlineAction->runWithParams(Array)
#6 /web/vendor/yiisoft/yii2/base/Module.php(454): yii\base\Controller->runAction('avatar', Array)
#7 /web/vendor/yiisoft/yii2/web/Application.php(87): yii\base\Module->runAction('user/settings/a...', Array)
#8 /web/vendor/yiisoft/yii2/base/Application.php(375): yii\web\Application->handleRequest(Object(yii\web\Request))
#9 /web/web/index.php(22): yii\base\Application->run()
#10 {main}
安装好,进入 http://localhost/
Unknow column 'view in 'order clause'
The SQL being executed was : SELECT * from `blog_book` ORDER BY `view` DESC LIMIT5
查看源码,发现数据库中 book
确实无 view
选项,见 ./database/migrations 内。而 ./frontend/themes/basic/site/index.php 中 Book::find()->orderyBy('view desc')->limit(5)->all()
,确实有问题。不知何解?谢谢。
是表内没有数据吧,大神给个完整的数据库吧
按照我的一篇博客,加入一边树形结构,一边表格的方法,会弹出错误,显示frontend/themes/basic/static/js/site.js的225行,.modal.load is not a function。
没办法,我就删除此行,显示正常。或者直接删除该site.js也正常。可否求解?谢谢。
我正在看【改版:yii2 tree manger 结合girdview的使用方法 - 教程 - Yii Framework 中文社区】,分享给你,一起看吧! http://www.yiichina.com/tutorial/1029
RT。图省事直接加了
if(isset($data[static::$formName]) && empty($data[static::$formName])) {
if(!$this->owner->isNewRecord) {
$this->beforeDelete();
}
}
如果规范,是否加个if嵌套?
打开首页分类的 更多>>> 按钮报错
报错内容 Class 'frontend\Widgets\area\TextWidget' not found 怎么解决....
试了下是m161102_090053_menu插不进去,继续反复试,原来是 ['78','路由规则','46','/urlrule/default/index','6','',''],
的78重复了……
可否考虑修改前台的上面菜单,一般网站都是只有上面一条,基本信息都显示在那边了。比如
搜索,用户登录,网站名称等,都放在一行了,感觉很简洁。现在的网站布局,显得“头大”布局不是很美观。后台 AdminLTE 的那种布局也是不错的。可否考虑?
另外。这段时间要借鉴该模板,并以此开发新网站,不知道本网站的许可证是怎么发布的,会不会侵权。
如果设想好了新的前台布局,再来推送。谢谢。
不太清楚 composer.lock 功能如何。我的方式,下载,手动更改 ./composer.json,因为之前做的网页有很多插件,想一次性全拖过来。 composer install
后,发现总是不会安装手动添加的,于是每次都把 ./composer.lock删除就好了。
这个纯粹是出于好奇,没啥实际意义, ./composer.lock 有没有存在的必要?谢谢。
is there anyone here ?
完全空白。啥反应也没有,那个上传本地图片功能。
安装后才在菜单显示这样相对友好
由本地文件切换到云存储(七牛云)时,如果mysql数据库里有本地上传记录时,切换后,七牛云上传不报错,返回正常,但是图片没有保存成功,把mysql数据库里的记录删掉就好了
不知道是什么问题。。。。。
大师,看你之前提过vue,还出vue版本的吗?
如题,我发现好多都是跳页面添加之类的,有没有考虑用modal呢
我先找找,看看能不能自行解决,再来完善。
对此当前和前段时间下载的版本,当前版本丢失了好几个文件。在实际操作中,一些操作都是找不到的。不知道什么原因导致的越更新文件丢失越严重。发生啥大事了吗。
昨天刚入手该源码,发现示例网站的功能和源码展现的不是太一致。能否更新到示例网站的源码。发现如下几个问题
首页
,或者修改数据库表格 nav-item
完成默认菜单的增减。能否在后台加入这一功能。谢谢。按惯例即使登录后修改密码,也应先验证旧密码。
密码通常有三栏:旧密码、新密码、再次输入新密码
Redis error: ERR invalid expire time in set
Redis command was: SET bc3677d4d5f16cab739649cdb8e3ed74 a:2:{i:0;a:41:{i:0;s:2:"15";i:1;s:2:"16";i:2;s:2:"17";i:3;s:2:"22";i:4;s:2:"25";i:5;s:2:"26";i:6;s:2:"27";i:7;s:2:"29";i:8;s:2:"31";i:9;s:2:"32";i:10;s:2:"34";i:11;s:2:"37";i:12;s:2:"40";i:13;s:2:"41";i:14;s:2:"42";i:15;s:2:"43";i:16;s:2:"45";i:17;s:2:"53";i:18;s:2:"57";i:19;s:2:"58";i:20;s:2:"66";i:21;s:2:"67";i:22;s:2:"68";i:23;s:2:"69";i:24;s:2:"70";i:25;s:2:"72";i:26;s:2:"73";i:27;s:2:"75";i:28;s:2:"76";i:29;s:2:"77";i:30;s:2:"78";i:31;s:2:"79";i:32;s:2:"80";i:33;s:2:"82";i:34;s:2:"33";i:35;s:2:"39";i:36;s:2:"71";i:37;s:2:"30";i:38;s:2:"24";i:39;s:2:"44";i:40;s:2:"81";}i:1;O:25:"yii\caching\TagDependency":3:{s:4:"tags";s:14:"mdm.admin.menu";s:4:"data";a:1:{s:32:"3878ebf0ff4c3750dfa7098d752daa6c";s:21:"0.88899900 1489507577";}s:8:"reusable";b:0;}} PX -1702967296
演示版好像有些功能没有同步到源码吗?比如插件
密码域是不可见元素,应输入两遍来防止误输入
如果把咱们这个系统迁移到postgresql这个数据库,不知道兼容不?
我把insert语句全部删除后,才能顺利安装,之后手动导入到数据库。我查了下说有保留字段什么的,不知道是不是因为有个group字段的关系
点击右上角用户名出现浮动窗口,需要点击窗口中的图片或空白处才会消失,与常规不符。建议改为点击窗口外的任何位置和修改密码按钮都会消失。
Windows 10 下PHP7.2.2能正常运行,用火狐测试admin功能,点击侧边栏,加载后标题栏、侧边栏、tab栏都消失了,只显示实际内容页面。
上传图片错误,使用 firebug 查找问题,发现保存的链接位置不对。排除了一下问题。
问题如下,正常存储,网站的网址是 http://localhost/www/yii2cmf-master/web/index.php?r=user%2Fsettings%2Favatar ,没有修改网址。但是图片的网址是 http://localhost/storage/upload/20170722/Jjjq3dSrHE94hFy388MKYoDqJ2cI0ro1YAlLFicN.jpg
发现没有弄对地址。是引用的时候地址不对。我在找,但是没有找到问题。
前两天刚想学学你的这个cmf系统 结果网站不能访问了
不管是我编辑已有的那些菜单,还是我自己添加新的菜单,到路由那一块,就提示 Route "XXX" not found.
测试网站的搜索是可以用的,自己搭建则无法搜索。经过测试发现,发现提交框有问题。网上说,http://m.111cn.net/art-52942.htm
页面通过表单(form)想服务器提交数据的时候有两种形式,一个是POST,另一个是GET。两种的一个区别是GET会直接把数据附加在url的后面,而POST发送的数据放置在http包中。form的action属性就是提交数据的url地址,method属性可以指定是GET或POST。
需要注意的是如果采用GET方式,那么action url中参数都会被丢弃,提交时候只会把form中的数据拼接在url向服务器提交;但是POST的方式则不会这样,它会按照action指定的url进行提交数据,包含url后面跟着的参数和参数值
跟设置的路由有关,也就是说urlManager
配置不带r=
,才可以。特此提醒一下,谢谢。
if (is_file(DIR . '/.env')) {
(new \Dotenv\Dotenv(DIR))->load();
}
defined('YII_DEBUG') or define('YII_DEBUG', env('YII_DEBUG'));
defined('YII_ENV') or define('YII_ENV', env('YII_ENV', 'prod'));
新增文章时
Getting unknown property: common\models\ArticleData::markdown
php yii app乱码
*** applying m160726_093217_create_user_table
> create table {{%user}} ... done (time: 0.006s)
> create table {{%profile}} ... done (time: 0.010s)
> insert into {{%user}} ... done (time: 0.003s)
> insert into {{%profile}} ...Exception 'yii\db\Exception' with message 'SQLSTATE[HY000]: General error: 1364 Field 'created_at' doesn't have a default value
The SQL being executed was: INSERT INTO yii2cmf_profile
(user_id
, locale
) VALUES (1, 'zh-CN')'
in /app/test/yii2cmf/vendor/yiisoft/yii2/db/Schema.php:633
Error Info:
Array
(
[0] => HY000
[1] => 1364
[2] => Field 'created_at' doesn't have a default value
)
更新到最新,但是发私信,对方收不到。
switchery.min.js:1 Uncaught SyntaxError: Unexpected token <
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.