Skip to content

Commit

Permalink
Removing ?> from AppModel and AppController plugin templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 13, 2011
1 parent 648a1f7 commit f65d763
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/Cake/Console/Command/Task/PluginTask.php
Expand Up @@ -134,15 +134,13 @@ public function bake($plugin) {
$out = "<?php\n\n";
$out .= "class {$plugin}AppController extends AppController {\n\n";
$out .= "}\n\n";
$out .= "?>";
$this->createFile($this->path . $plugin. DS . 'Controller' . DS . $controllerFileName, $out);

$modelFileName = $plugin . 'AppModel.php';

$out = "<?php\n\n";
$out .= "class {$plugin}AppModel extends AppModel {\n\n";
$out .= "}\n\n";
$out .= "?>";
$this->createFile($this->path . $plugin . DS . 'Model' . DS . $modelFileName, $out);

$this->hr();
Expand Down

0 comments on commit f65d763

Please sign in to comment.