Example #1
0
<?php

$widget = new \Ub\Admin\WidgetCrudList();
$widget->setData($data);
$widget->setOptions(array('showFields' => array('title' => 'title'), 'controllerRoute' => \Uc::app()->url->getControllerName()));
echo $widget->show();
Example #2
0
echo \Uc::app()->url->create($listRoute);
?>
" class="<?php 
echo $statusRequest === null ? 'current' : '';
?>
">Усі</a>
      <?php 
foreach (\Ub\Simpleblog\Comments\Model::getStatusDescription() as $status => $statusName) {
    ?>
        <a href="<?php 
    echo \Uc::app()->url->create($listRoute, array('-w-status' => $status));
    ?>
" class="<?php 
    echo $statusRequest === $status ? 'current' : '';
    ?>
"><?php 
    echo $statusName;
    ?>
</a>
      <?php 
}
?>
      <div class="sep"></div>
    </div>
  </div>

<?php 
$widget = new \Ub\Admin\WidgetCrudList();
$widget->setData($data);
$widget->setOptions(array('hideTitle' => true, 'addRoute' => null, 'showFields' => array('name' => 'name', 'comment' => 'comment'), 'controllerRoute' => \Uc::app()->url->getControllerName()));
echo $widget->show();
Example #3
0
<?php

$widget = new \Ub\Admin\WidgetCrudList();
$widget->setData($data);
$widget->setOptions(array('showFields' => array('Логін' => 'login', 'Ім\'я' => 'name'), 'controllerRoute' => \Uc::app()->url->getControllerName()));
echo $widget->show();