承接 gamitg/yii2-detailview4cols 相关项目开发

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

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

gamitg/yii2-detailview4cols

最新稳定版本:v1.0.0

Composer 安装命令:

composer require gamitg/yii2-detailview4cols

包简介

This extension is a variation of the DetailView widget of Yii2. It has simply the same code with a few modification to it.

README 文档

README

This extension is a variation of the DetailView widget of Yii2. It has simply the same code with a few modification to it. Thanks to "Yii 1.1: detailview4col (Developed by: c@cba) extension".

Latest Stable Version Total Downloads Latest Unstable Version License Monthly Downloads Daily Downloads

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist gamitg/yii2-detailview4cols "*"

or add

"gamitg/yii2-detailview4cols": "*"

to the require section of your composer.json file.

Note

If you getting error while installing this extension, so just add following line in your composer.json file.

"minimum-stability": "dev",
"prefer-stable": true,

Because of this extension currently available only in dev-master. So, i appreciate your suggestion and also issue fixing related to this extension.

Usage

Once the extension is installed, simply use it in your code by :

<?= \gamitg\detailview4cols\DetailView4Col::widget(); ?>

Example

	<?= \gamitg\detailview4cols\DetailView4Col::widget([
		        'model' => $model,
		        'options'=>['class'=>'table table-striped table-bordered detail-view'],
		        'attributes' => [
					'id',
					[
		        		'attribute' => 'user_id',
		        		'value' => $model->user->user_name,
		        		'oneRow' =>true
					],
			        'page.page_no',
			        'comment:ntext',
			        'time:datetime',
			        [
					   	'attribute'=>'created_by',
						'value'=>(!empty($model->user_id) ? $model->user_id : "Not Set")
				    ],
		        ],
    	]) ?>

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2015-07-26