Skip to content

Commit

Permalink
Updating example code in comment to reflect renaming of Controller::$…
Browse files Browse the repository at this point in the history
…view to Controller::$viewClass. Closes #1579
  • Loading branch information
ADmad committed Mar 9, 2011
1 parent c8f33b7 commit 95d44c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cake/libs/view/media.php
Expand Up @@ -38,7 +38,7 @@
* {{{
* class ExampleController extends AppController {
* function download () {
* $this->view = 'Media';
* $this->viewClass = 'Media';
* $params = array(
* 'id' => 'example.zip',
* 'name' => 'example',
Expand Down
2 changes: 1 addition & 1 deletion cake/libs/view/theme.php
Expand Up @@ -23,7 +23,7 @@
*
* Allows the creation of multiple themes to be used in an app. Theme views are regular view files
* that can provide unique HTML and static assets. If theme views are not found for the current view
* the default app view files will be used. You can set `$this->theme` and `$this->view = 'Theme'`
* the default app view files will be used. You can set `$this->theme` and `$this->viewClass = 'Theme'`
* in your Controller to use the ThemeView.
*
* Example of theme path with `$this->theme = 'super_hot';` Would be `app/views/themed/super_hot/posts`
Expand Down

0 comments on commit 95d44c3

Please sign in to comment.