- fix for Ticket #30

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@254 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
pies 2005-06-19 04:42:52 +00:00
parent 6a8bf274e2
commit 6fa1c1b3d4
2 changed files with 5 additions and 5 deletions

View file

@ -95,11 +95,11 @@ class Bake extends Object {
function template ($type) {
switch ($type) {
case 'view': return "%s";
case 'model': return "<?PHP\n\nclass %s extends AppModel {\n}\n\n?>";
case 'model': return "<?php\n\nclass %s extends AppModel {\n}\n\n?>";
case 'action': return "\n\tfunction %s () {\n\t}\n";
case 'ctrl': return "<?PHP\n\nclass %s extends %s {\n%s\n}\n\n?>";
case 'helper': return "<?PHP\n\nclass %s extends AppController {\n}\n\n?>";
case 'test': return '<?PHP
case 'ctrl': return "<?php\n\nclass %s extends %s {\n%s\n}\n\n?>";
case 'helper': return "<?php\n\nclass %s extends AppController {\n}\n\n?>";
case 'test': return '<?php
class %sTest extends TestCase {
var $abc;

View file

@ -272,7 +272,7 @@ class Model extends Object
trigger_error('Application error occured, trying to set a field name that doesn\'t exist.', E_USER_WARNING);
}
*/
$n == 'id'? $this->id = $v: $this->data[$n] = $v;
$n == 'id'? $this->setId($v): $this->data[$n] = $v;
}
return $data;