Skip to content
Permalink
Browse files

Remove duplicate template.

Also remove double creating the home.ctp file.

Fixes #2842
  • Loading branch information...
markstory committed May 3, 2012
1 parent 49f8e73 commit b57489f3f1d08f600e947c0e535c32bcd2d7f956
Showing with 0 additions and 133 deletions.
  1. +0 −20 lib/Cake/Console/Command/Task/ProjectTask.php
  2. +0 −113 lib/Cake/Console/Templates/default/views/home.ctp
@@ -70,12 +70,6 @@ public function execute() {
$success = true;
if ($this->bake($project)) {
$path = Folder::slashTerm($project);
if ($this->createHome($path)) {
$this->out(__d('cake_console', ' * Welcome page created'));
} else {
$this->err(__d('cake_console', 'The Welcome page was <error>NOT</error> created'));
$success = false;
}
if ($this->securitySalt($path) === true) {
$this->out(__d('cake_console', ' * Random hash key created for \'Security.salt\''));
@@ -220,20 +214,6 @@ public function bake($path, $skel = null, $skip = array('empty')) {
}
}
/**
* Writes a file with a default home page to the project.
*
* @param string $dir Path to project
* @return boolean Success
*/
public function createHome($dir) {
$app = basename($dir);
$path = $dir . 'View' . DS . 'Pages' . DS;
$source = CAKE . 'Console' . DS . 'Templates' . DS . 'default' . DS . 'views' . DS . 'home.ctp';
include $source;
return $this->createFile($path . 'home.ctp', $output);
}
/**
* Generates the correct path to the CakePHP libs that are generating the project
* and points app/console/cake.php to the right place

This file was deleted.

Oops, something went wrong.

0 comments on commit b57489f

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