From 6fa1c1b3d42c63a0b842a383c311d5f446fdaeca Mon Sep 17 00:00:00 2001 From: pies Date: Sun, 19 Jun 2005 04:42:52 +0000 Subject: [PATCH] - fix for Ticket #30 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@254 3807eeeb-6ff5-0310-8944-8be069107fe0 --- libs/bake.php | 8 ++++---- libs/model.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/bake.php b/libs/bake.php index 40cc5bd39..e7d05a04f 100644 --- a/libs/bake.php +++ b/libs/bake.php @@ -95,11 +95,11 @@ class Bake extends Object { function template ($type) { switch ($type) { case 'view': return "%s"; - case 'model': return ""; + case 'model': return ""; case 'action': return "\n\tfunction %s () {\n\t}\n"; - case 'ctrl': return ""; - case 'helper': return ""; - case 'test': return '"; + case 'helper': return ""; + case 'test': return 'id = $v: $this->data[$n] = $v; + $n == 'id'? $this->setId($v): $this->data[$n] = $v; } return $data;