mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
- 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:
parent
6a8bf274e2
commit
6fa1c1b3d4
2 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue