用户
 找回密码
 入住 CI 中国社区
搜索
12
返回列表 发新帖
楼主: yho
收起左侧

[其它 Other] 周末发现一个不错的ci-cms2

  [复制链接]
发表于 2011-8-6 02:38:48 | 显示全部楼层
step1 出现下面。明明是有下面文件夹的,怎么还是出现这样的错误呢?

ERROR: folder ./media/images not created. Please create it manually.
ERROR: folder ./media/images/o not created. Please create it manually.
ERROR: folder ./media/images/m not created. Please create it manually.
ERROR: folder ./media/images/s not created. Please create it manually.
ERROR: folder ./media/files not created. Please create it manually.
ERROR: folder ./media/captcha not created. Please create it manually.

step4安装错误,出现下面文字

A Database Error Occurred
Error Number: 1364

Field 'g_info' doesn't have a default value

INSERT INTO ci_groups (g_id, g_name, g_desc) VALUES ('0', 'Everybody', 'This is everybody who visits the site including non members')

Filename: F:\httproot\ci-cms2\system\database\DB_driver.php

Line Number: 330

求解.
发表于 2011-8-8 10:25:09 | 显示全部楼层
shuro 发表于 2011-7-22 11:36
请问在\ci-cms2\application\modules\admin\locale\下的fr.mo和fr.po两个文件是做什么用的啊? ...

i18n多语言文件,对应于法语语言。
正在找怎么生成其他语言文件。
发表于 2011-8-8 11:09:37 | 显示全部楼层
创建新语言文件方法:
点击查看(英文)

中文简易流程:
下载poedit,新建消息目录文档,填写工程信息以及期望的语言,字符集为utf8,基本路径不动,复制cms目录中的controllers和views的路径到路径中,关键字添加双下划线“__”,不包括引号,点击确定即可取到语言字符串,翻译好以后把该po和mo文件名改为后台里添加的语言code,放到该modules的locale目录下即可,然后在后台试试看切换语言吧。

如果提示无法加载class locale,请注释掉"\application\modules\language\controllers\language.php"第17行("$this->load->library('locale');")
发表于 2011-11-8 18:46:22 | 显示全部楼层
代码看起来写的不错,但是每有数据库呀
发表于 2014-6-25 21:03:47 | 显示全部楼层
怎么安装,不行呀
发表于 2014-12-19 14:38:27 | 显示全部楼层
josh 发表于 2011-11-8 18:46
代码看起来写的不错,但是每有数据库呀

Installation
  • Download and extract
  • When you install it under a sub-folder and you want to use .htaccess, verify that you specified the RewriteBase?
  • Make writable the folders ./media and ./cache
  • Rename database.dist.php in ./application/config to database.php and fill it with your database configuration.
  • Rename config.dist.php in ./application/config to config.php and adjust it to your needs.
  • Go to http://yoursite/install and follow the installation steps
  • The first username and password will become the main administrator. You can add more later.


详见文档:
https://bitbucket.org/hery/ci-cms/wiki/Home#!installation

本版积分规则