承接 p2made/yii2-p2y2-things-demo 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

p2made/yii2-p2y2-things-demo

最新稳定版本:5.0.0

Composer 安装命令:

composer require p2made/yii2-p2y2-things-demo

包简介

Not really a theme. A set of pages to demonstrate p2made/p2y2-things, bundled as a theme.

README 文档

README

License Total Downloads Monthly Downloads Latest Stable Version Latest Unstable Version

¡¡ Notice !!

After an extented period of life getting in the way I'm back to Yii2 development. I'll be rebasing every project as I resume work on it. Projects that use Bootstrap will resume as version 5.0.0 for Bootstrap 5.x.

A set of pages to demonstrate p2made/p2y2-things, bundled as a theme.

It declares p2made/p2y2-things as a dependancy.

Installation

The preferred way to install P2Y2Things Demo is through composer. Depending on your composer installation, run one of the following commands:

composer require --prefer-dist p2made/p2y2-things-demo "^5.0"

or

php composer.phar require --prefer-dist p2made/p2y2-things-demo "^5.0"

Alternatively add:

	"p2made/p2y2-things-demo": "^5.0"

to the requires section of your composer.json file & P2Y2Things Demo will be installed next time you run composer update.

The files are installed via Yii's recommended usage of the fxp/composer-asset-plugin.

Quick Start

Once the extension is installed, you can have a preview by reconfiguring the path mappings of the view component:

	'components' => [
		'view' => [
			'theme' => [
				'pathMap' => [
					'@app/views' => '@vendor/p2m/p2y2-things-demo/views',
				],
			],
		],
	],

To view pages in site/pages/ you need to modify actions() in the SiteController:

	public function actions()
	{
		return [
			...
			'page' => [
				'class' => 'yii\web\ViewAction',
			],
		];
	}

And then...

P2Y2Things Demo uses P2Y2Things which requires some Yii 2 assets to be nullified to avoid conflicts through double loading. Modify common/config/main.php with...

	'components' => [
		'assetManager' => [
			'bundles' => [
				'yii\web\JqueryAsset' => [
					'sourcePath' => null, 'js' => [],
				],
				'yii\bootstrap\BootstrapAsset' => [
					'sourcePath' => null, 'css' => [],
				],
				'yii\bootstrap\BootstrapPluginAsset' => [
					'sourcePath' => null, 'js' => [],
				],
				'yii\jui\JuiAsset' => [
					'sourcePath' => null, 'css' => [], 'js' => [],
				],
				'\rmrevin\yii\fontawesome\AssetBundle' => [
					'sourcePath' => null, 'css' => [],
				],
			],
		],
		...
	],

DO NOT modify the views in the views/ folder. Your changes will be lost next time you run composer update.

You can copy elements from these examples into your own views.

统计信息

  • 总下载量: 5.35k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-06-03