yii2-detail-view Various enhancements to the Yii 2 Detail View with ability to edit data and manage styles using BS3.

  1. Demo
  2. Installation
  3. Usage
  4. Controller & View Setup
  5. Report
  6. License
  7. Resources

An extended Yii2 DetailView with many additional features. Extends the Yii DetailView to work in both VIEW and EDIT modes. Accelerates your development by using a single configuration of attributes for both VIEW and EDIT. The extension also includes easier methods to style your detail view widget cells, data, form inputs, widgets, and columns (more specifically for Bootstrap 3). The widget by default can be styled within a Bootstrap 3 panel with a buttons toolbar to toggle modes and control your data. Refer detailed documentation and/or a complete demo.

Note: This extension depends on the kartik-v/yii2-widgets and kartik-v/yii2-helpers extensions which in turn depends on the yiisoft/yii2-bootstrap extension. Check the composer.json for this extension's requirements and dependencies. Note: Yii 2 framework is still in active development, and until a fully stable Yii2 release, your core yii2-bootstrap packages (and its dependencies) may be updated when you install or update this extension. You may need to lock your composer package versions for your specific app, and test for extension break if you do not wish to auto update dependencies.


You can see detailed documentation and demonstration on usage of the extension.


The preferred way to install this extension is through composer.

Either run:

$ php composer.phar require kartik-v/yii2-detail-view "*"

or add:

"kartik-v/yii2-detail-view": "*"

to the require section of your composer.json file.


use kartik\detail\DetailView;
echo DetailView::widget([
        'heading'=>'Book # ' . $model->id,
        ['attribute'=>'publish_date', 'type'=>DetailView::INPUT_DATE],

Controller & View Setup

Refer this wiki for understanding how to setup your controller and view to work with this extension for update and delete actions.



yii2-detail-view is released under the BSD 3-Clause License. See the bundled LICENSE.md for details.


2 0
Yii Version: 2.0
License: BSD-2-Clause
Category: User Interface
Developed by: Kartik V
Created on: May 15, 2014
Last updated: 9 years ago

Related Extensions