PHP Classes

File: src/templates/fixture_tpl.php

Recommend this page to a friend!
  Classes of Insolita   Yii2 Fixture ii   src/templates/fixture_tpl.php   Download  
File: src/templates/fixture_tpl.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Yii2 Fixture ii
Generate fixture code files from templates scripts
Author: By
Last change:
Date: 2 months ago
Size: 381 bytes
 

Contents

Class file image Download
<?php
/**
 * The following variables are available in this view:
 */
/**
 * @var array $tableColumns
 * @var \insolita\fixturegii\generators\TemplateGenerator $generator
 */

echo "<?php\n";
?>
/**
* @var $faker \Faker\Generator
* @var $index integer
*/
return [
<?php foreach($tableColumns as $name=>$fakeString):?>
'<?=$name?>' => <?=$fakeString;?>,
<?php endforeach;?>
];