User: Алимжан Date: 28.01.2015 Time: 19:10
Inheritance: extends yii\bootstrap\Widget, use trait nemmo\attachments\ModuleTrait
Exemplo n.º 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]);