PHP code example of artkost / yii2-trumbowyg
1. Go to this page and download the library: Download artkost/yii2-trumbowyg library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
artkost / yii2-trumbowyg example snippets
echo \artkost\yii2\trumbowyg\Trumbowyg::widget([
'name' => 'myname',
'settings' => [
'lang' => 'ru'
]
]);
use artkost\yii2\trumbowyg\Trumbowyg;
echo $form->field($model, 'content')->widget(Trumbowyg::className(), [
'settings' => [
'lang' => 'ru'
]
]);
php composer.phar