Skip to content
Permalink
Browse files

updating model bake tempalte to meet code standards

  • Loading branch information...
AD7six committed May 9, 2012
1 parent 5b50763 commit 39a53fe0e2713ced77cc85cff692430d95710f36
Showing with 8 additions and 5 deletions.
  1. +8 −5 lib/Cake/Console/Templates/default/classes/model.ctp
@@ -45,12 +45,14 @@ class <?php echo $name ?> extends <?php echo $plugin; ?>AppModel {
*/
public $useDbConfig = '<?php echo $useDbConfig; ?>';

<?php endif;?>
<?php if ($useTable && $useTable !== Inflector::tableize($name)):
$table = "'$useTable'";
echo "/**\n * Use table\n *\n * @var mixed False or table name\n */\n";
echo "\tpublic \$useTable = $table;\n\n";
<?php endif;
if ($useTable && $useTable !== Inflector::tableize($name)):
$table = "'$useTable'";
echo "/**\n * Use table\n *\n * @var mixed False or table name\n */\n";
echo "\tpublic \$useTable = $table;\n\n";
endif;
if ($primaryKey !== 'id'): ?>
/**
* Primary key field
@@ -60,6 +62,7 @@ if ($primaryKey !== 'id'): ?>
public $primaryKey = '<?php echo $primaryKey; ?>';

<?php endif;
if ($displayField): ?>
/**
* Display field

0 comments on commit 39a53fe

Please sign in to comment.
You can’t perform that action at this time.