Example #1
0
</td>
                        </tr>
                        <tr>
                            <td>Varietal</td><td><?php 
echo Html::encode($wineRecord->wineVarietal->name);
?>
</td>
                        </tr>
                        <tr>
                            <td>Name</td><td><?php 
echo Html::encode($wineRecord->wine_name);
?>
</td>
                        </tr>
                    </table>
				</div>
            </div>
            <div class="col-lg-4">
                <h3>Label Image</h3>

                <p>
					<?php 
echo \nemmo\attachments\components\AttachmentsTable::widget(['model' => $wineRecord]);
?>
				</p>
            </div>
        </div>
    </div>

</div>
 public function testEmptyBehaviorConfig()
 {
     $this->setExpectedException('\\yii\\base\\InvalidConfigException');
     $model = new ActiveRecord();
     AttachmentsTable::widget(['model' => $model]);
 }
<?php

/**
 * Created by PhpStorm.
 * User: Alimzhan
 * Date: 2/6/2016
 * Time: 10:29 PM
 */
use tests\models\Comment;
/** @var $model Comment */
echo \nemmo\attachments\components\AttachmentsTable::widget(['model' => $model]);