Skip to content

anjocee2/anjo_json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JSON Editor for Yii2

This widget for Yii2 is a version of https://github.com/josdejong/jsoneditor

Install

  • copy folder 'anjo_json' to Yii2's project's common/widget (advanced version)

Usage

  • in controller-file, add this line: return $this->render('json-editor', ['model'=>$model]);

  • in view-file, add this line:

echo $form->field($model, 'fields')->widget('common\widgets\anjo_json\AnjoJson');

  • other codes is as same as normal Yii2 codes;

About

json editor widget for Yii2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages