One of the things you will find tricky to implement is the the sorting and filtering of a GridView’s column that displays related model data. As you know if you have been playing with Yii2 lately, there is a new proposed way to search for data and is by using objects that extend from the… Continue reading Yii 2.0: Displaying, Sorting and Filtering Model Relations on a GridView, Gridview with relationships
Category: Uncategorized
YII2 nav widget open link in new tab/window and how to link to external link
echo Nav::widget([ ‘options’ => [‘class’ => ‘nav navbar-left nav-tabs’], ‘items’ => [ [ ‘label’ => ‘Schedule An Appointment’, ‘url’ => ‘http://google.com’, ‘linkOptions’ => [‘target’ => ‘_blank’] ], ], ]);
yii widgets.CDetailView show HTML
<?php $this->widget(‘zii.widgets.CDetailView’, array( ‘data’=>$model, ‘attributes’=>array( ‘visit_feedback:html’, …),