yiicms php版本,yiicms
YiiCms 企业站管理系统,基于 yii2 basic 开发
Yii 2 Basic Project Template is a skeleton Yii 2 application best for
rapidly creating small projects.
yiicms 主要功能:
新闻管理
产品管理
下载管理
图片管理 (开发中)
后台权限rbac
前台菜单自定义、后台菜单自定义
多模板多主题
内容批量操作 (后续开发)
多语言支持 (后续开发)
友情链接 (后续开发)
DIRECTORY STRUCTURE
assets/ contains assets definition
commands/ contains console commands (controllers)
config/ contains application configurations
controllers/ contains Web controller classes
mail/ contains view files for e-mails
models/ contains model classes
modules/ contains modules
runtime/ contains files generated during runtime
tests/ contains various tests for the basic application
vendor/ contains dependent 3rd-party packages
views/ contains view files for the Web application
web/ contains the entry script and Web resources
yiicms.sql sql file
composer.json
REQUIREMENTS
The minimum requirement by this project template that your Web server supports PHP 5.4.0.
INSTALLATION
1. git clone git@git.oschina.net:templi/yiicms.git
2. composer install
3. import yiicms.sql
Now you should be able to access the application through the following URL, assuming yiicms is the directory
directly under the Web root.
http://localhost/yiicms/web/
Set cookie validation key in config/web.php file to some random secret string:
'request' => [
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
'cookieValidationKey' => '',
],
You can then access the application through the following URL:
http://localhost/yiicms/web/
CONFIGURATION
Database
Edit the file config/db.php with real data, for example:
return [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=yiicms',
'username' => 'root',
'password' => '123456',
'charset' => 'utf8',
];
NOTES:
Yii won't create the database for you, this has to be done manually before you can access it.
Check and edit the other files in the config/ directory to customize your application as required.
Refer to the README in the tests directory for information specific to basic application tests.
TESTING
Tests are located in tests directory. They are developed with Codeception PHP Testing Framework.
By default there are 3 test suites:
unit
functional
acceptance
Tests can be executed by running
composer exec codecept run
The command above will execute unit and functional tests. Unit tests are testing the system components, while functional
tests are for testing user interaction. Acceptance tests are disabled by default as they require additional setup since
they perform testing in real browser.
Running acceptance tests
To execute acceptance tests do the following:
Rename tests/acceptance.suite.yml.example to tests/acceptance.suite.yml to enable suite configuration
Replace codeception/base package in composer.json with codeception/codeception to install full featured
version of Codeception
Update dependencies with Composer
composer update
Download Selenium Server and launch it:
java -jar ~/selenium-server-standalone-x.xx.x.jar
(Optional) Create yii2_basic_tests database and update it by applying migrations if you have them.
tests/bin/yii migrate
The database configuration can be found at config/test_db.php.
Start web server:
tests/bin/yii serve
Now you can run all available tests
# run all available tests
composer exec codecept run
# run acceptance tests
composer exec codecept run acceptance
# run only unit and functional tests
composer exec codecept run unit,functional
Code coverage support
By default, code coverage is disabled in codeception.yml configuration file, you should uncomment needed rows to be able
to collect code coverage. You can run your tests and collect coverage with the following command:
#collect coverage for all tests
composer exec codecept run -- --coverage-html --coverage-xml
#collect coverage only for unit tests
composer exec codecept run unit -- --coverage-html --coverage-xml
#collect coverage for unit and functional tests
composer exec codecept run functional,unit -- --coverage-html --coverage-xml
You can see code coverage output under the tests/_output directory.
yiicms php版本,yiicms相关推荐
- 拉勾教育 | Java 性能优化实战 21 讲
开篇词 开篇词 | Java 性能优化,是进阶高级架构师的炼金石 你好,我是李国.作为<Java 性能优化与面试 21 讲>这个课程的作者,我先来简单介绍下自己. 我曾任京东金融.陌陌科技 ...
- yii验证系统学习记录,基于yiicms(一)写的太长了,再写一篇(二)
项目地址:https://gitee.com/templi/yiicms 感谢七觞酒大神的付出,和免费分享.当然也感谢yii2的开发团队们. 项目已经安全完毕,不知道后台密码,这种背景下,后台无法进去 ...
- gcc 自动识别的文件扩展名,gcc/g++ -x 选项指定语言,不同 gcc 版本 -std 编译选项支持列表
对于执行 C 或者 C++ 程序,需要借助 gcc(g++)指令来调用 GCC 编译器. 对于以 .c 为扩展名的文件,GCC 会自动将其视为 C 源代码文件 对于以 .cpp 为扩展名的文件,GCC ...
- 多版本python共存,安装三方库到指定python版本 多Python版本和虚拟环境
多个Python版本:在同一台机器上安装不同的Python,例如2.7和3.4. 虚拟环境:独立的环境,既可以同时安装特定版本的Python,也可以安装任何特定于项目的软件包,而不会影响任何其他项目. ...
- virtualenv创建虚拟环境为主_多版本
20210821 指定python版本安装 20201223 进入虚拟环境之后 如果在其他虚拟环境的目录下 则会首先找到 其他环境的pip 并列出软件版本 如果要查看当前真实环境的情况 用下面的命令 ...
- windows下多版本python安装与pip安装和pip使用 吐血总结
https://blog.csdn.net/silence2015/article/details/56483892/ 版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附 ...
- Python多版本pip安装库的问题
引 机器上总是会有Python2.7的版本和Python3.x的版本,今天接触到一台服务器上面有Python2.7和Python3.4,想在Python3.4下安装一个TensorFlow,但不管怎么 ...
- 禁用GPU版本TensorFlow,切换到CPU版本TensorFlow。
#禁用gpu版本TensorFlow,因为CUDA号码从0开始,这里直接让CUDA使用-1的GPU,自然就无法使用gpu了. 代码前面加入: import os os.environ["CU ...
- 安装win下的Anaconda ----针对python3.6.4版本
我的python版本是3.6.4, Anaconda下载地址: Anaconda官网:https://repo.anaconda.com/archive/ 清华大学镜像站:https://mirror ...
最新文章
- [How TO]-Ubuntu 20.04修改终端标题栏文字
- 【编译原理】文法的基本概念
- 晶振测试与使用中的主要问题(z)
- java 为文件及文件夹添加权限
- java不想出差_您不想错过的十大Java书籍
- Linux解压tar.gz、zip、tar.bz2 文件与对应的命令
- zepto为什么不支持animate,报animate is not a function
- 树的表示(1)--双亲表示法
- 易语言之今日头条新闻收集源码
- xp系统计算机无法连接远程桌面连接,完美解决精简版或者ghost版XP系统无法连接远程桌面的问题...
- Charles抓包安卓端
- 激光导航技术是如何实现的?
- ai面试的优缺点_面试看脸?颜值低会不会被AI刷掉......
- 计算机组成原理试题库(含答案),计算机组成原理试题库(含答案) -
- 浅析集线器、交换机、路由器
- pygame--图片随键盘移动
- JavaScript求最大的岛屿面积
- 如何优雅地使用Sublime Text3
- win10彻底卸载JDK
- 在ANSYS workbench中如何对物体局部区域进行网格细密化