2017 © Pedro Peláez
 

yii2-extension yii2-view

This packet contains some helpful code for creating views for the framework YII2.

image

yasheena/yii2-view

This packet contains some helpful code for creating views for the framework YII2.

  • Friday, November 18, 2016
  • by yasheena
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Helpful extensions for views

This packet contains some helpful code for creating views for the framework YII2., (*1)

YFormatter: Extended YII2-Formatter
* New format: ntext1line => Returns the first line only or first part of the first line(useful for text fields in grids), (*2)

Examples:
In column definition:
'format' => 'ntext1line', // Shows the first line only
'format' => ['ntext1line', 25] // Shows a maximum of 25 characters of the fisrt line, (*3)

Installation

The preferred way to install this extension is through composer., (*4)

Either run, (*5)

php composer.phar require --prefer-dist yasheena/yii2-view "*"

or add, (*6)

"yasheena/yii2-view": "*"

to the require section of your composer.json file., (*7)

Usage

Once the extension is installed, simply use it in your code by:, (*8)

YFormatter: Add the following line to your grid options and you can use the new formats:, (*9)

'formatter' => new \yasheena\view\YFormatter()

The Versions

18/11 2016

dev-master

9999999-dev

This packet contains some helpful code for creating views for the framework YII2.

  Sources   Download

MIT

The Requires

 

by Wolfgang Mattis

extension yii2 formatter view

18/11 2016

0.1.2

0.1.2.0

This packet contains some helpful code for creating views for the framework YII2.

  Sources   Download

MIT

The Requires

 

by Wolfgang Mattis

extension yii2 formatter view

20/09 2016

0.1.1

0.1.1.0

This packet contains some helpful code for creating views for the framework YII2.

  Sources   Download

MIT

The Requires

 

by Wolfgang Mattis

extension yii2 formatter view

20/09 2016

0.1.0

0.1.0.0

This packet contains some helpful code for creating views for the framework YII2.

  Sources   Download

MIT

The Requires

 

by Wolfgang Mattis

extension yii2 formatter view