1
0

Added new (clean) yii boilerplate

This commit is contained in:
2014-05-13 12:40:42 +02:00
parent 1d6d975a16
commit 99d29b432b
1983 changed files with 653465 additions and 17 deletions

View File

@@ -0,0 +1,25 @@
<?php
/**
* This is the template for generating the fixture file for a model class.
* The following variables are available in this template:
* - $table: the table schema
*/
?>
<?php echo "<?php\n"; ?>
return array(
/*
'sample1'=>array(
<?php foreach($table->columns as $name=>$column) {
if($table->sequenceName===null || $table->primaryKey!==$column->name)
echo "\t\t'$name' => '',\n";
} ?>
),
'sample2'=>array(
<?php foreach($table->columns as $name=>$column) {
if($table->sequenceName===null || $table->primaryKey!==$column->name)
echo "\t\t'$name' => '',\n";
} ?>
),
*/
);