dxonsatit / yii2-agency-theme
Yii 2 Agency Theme 资产包
1.0.2
2015-07-24 06:28 UTC
Requires
- bower-asset/fontawesome: 4.3.*
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2024-09-05 11:26:19 UTC
README
基于 Agency - 单页 Bootstrap 主题 的 Yii 2 Agency Theme
此包包含一个 Yii 2.0 框架的资产包,用于注册 Agency - 单页 Bootstrap 主题的 CSS 文件
安装
通过 composer 安装此扩展是首选方式。
运行以下命令:
php composer require dixonsatit/yii2-agency-theme
或者添加以下内容到您的 composer.json
文件的 require 部分:
"dixonsatit/yii2-agency-theme": "*"
使用
安装扩展后,您可以通过重新配置视图组件的路径映射来预览
'view'=>[ 'theme'=>[ 'pathMap'=>[ '@app/views'=>'@dixonsatit/agencyTheme/views' ] ] ],
自定义
- 在您的应用程序中创建 /themes/agency 文件夹
- 将文件从
vendor/dixonsatit/yii2-agency-theme/views
复制到 /themes/agency/ - 编辑 config/main.php 以设置
'view'=>[
'theme'=>[
'pathMap'=>[
'@app/views'=>'@app/themes/agency'
]
]
],
Agency Theme
由 Agency - 单页 Bootstrap 主题 创建,使用 Yii 2.0 框架资产包
使用方法
安装完成后,请按以下方式在 config/main.php 中进行配置
'view'=>[ 'theme'=>[ 'pathMap'=>[ '@app/views'=>'@dixonsatit/agencyTheme/views' ] ] ],
在实际使用中,我们不应修改 vendor/dixonsatit/yii2-agency-theme/views
中的文件,而应将视图文件复制到我们的应用程序中
- 在您的应用程序中创建 /themes/agency 文件夹
- 将
vendor/dixonsatit/yii2-agency-theme/views
中的所有文件复制到您的应用程序中的/themes/agency
- 重新配置视图
'view'=>[ 'theme'=>[ 'pathMap'=>[ '@app/views'=>'@app/themes/agency' ] ] ],
然后您可以根据需要修改各种视图