PHP Classes

File: crud/default/views/_listviewitems.php

Recommend this page to a friend!
  Classes of Insolita   Yii2 Giitwig   crud/default/views/_listviewitems.php   Download  
File: crud/default/views/_listviewitems.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Yii2 Giitwig
Implement CRUD applications using Twig templates
Author: By
Last change:
Date: 2 months ago
Size: 271 bytes
 

Contents

Class file image Download
<?php
/* @var $this yii\web\View */
/* @var $generator insolita\giitwig\crud\Generator */

$urlParams = $generator->generateTwigUrlParams();
$nameAttribute = $generator->getNameAttribute();

echo
'{{ html.a(model.'.$nameAttribute.',url("view", '.$urlParams.')) |raw}}';