Adding fix from Ticket #2336

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4747 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-04-03 21:12:09 +00:00
parent ed342c307d
commit 065b93c29a

View file

@ -2343,7 +2343,7 @@ class Bake {
$count = count($tables); $count = count($tables);
for ($i = 0; $i < $count; $i++) { for ($i = 0; $i < $count; $i++) {
if(low($type) == 'controllers') { if(low($type) == 'controllers') {
$this->__controllerNames[] = $this->__controllerName($tables[$i]); $this->__controllerNames[] = $this->__controllerName($this->__modelName($tables[$i]));
$this->stdout($i + 1 . ". " . $this->__controllerNames[$i]); $this->stdout($i + 1 . ". " . $this->__controllerNames[$i]);
} else { } else {
$this->__modelNames[] = $this->__modelName($tables[$i]); $this->__modelNames[] = $this->__modelName($tables[$i]);