Skip to content
Permalink
Browse files

Fixing title_for_layout not being set in apps made with bake. Fixes #567

  • Loading branch information...
markstory committed Apr 11, 2010
1 parent ed02b0f commit af71787b6776c6bdbfb2f0e2996a37cc8c5f09ff
Showing with 2 additions and 2 deletions.
  1. +2 −2 cake/console/templates/skel/controllers/pages_controller.php
@@ -76,9 +76,9 @@ public function display() {
$subpage = $path[1];
}
if (!empty($path[$count - 1])) {
$title = Inflector::humanize($path[$count - 1]);
$title_for_layout = Inflector::humanize($path[$count - 1]);
}
$this->set(compact('page', 'subpage', 'title'));
$this->set(compact('page', 'subpage', 'title_for_layout'));
$this->render(implode('/', $path));
}
}

0 comments on commit af71787

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