Updating example code in comment to reflect renaming of Controller::$view to Controller::$viewClass. Closes #1579

This commit is contained in:
ADmad 2011-03-10 03:54:20 +05:30
parent c8f33b77a1
commit 95d44c3694
2 changed files with 2 additions and 2 deletions

View file

@ -38,7 +38,7 @@ App::import('View', 'View', false);
* {{{ * {{{
* class ExampleController extends AppController { * class ExampleController extends AppController {
* function download () { * function download () {
* $this->view = 'Media'; * $this->viewClass = 'Media';
* $params = array( * $params = array(
* 'id' => 'example.zip', * 'id' => 'example.zip',
* 'name' => 'example', * 'name' => 'example',

View file

@ -23,7 +23,7 @@ App::import('View', 'View');
* *
* Allows the creation of multiple themes to be used in an app. Theme views are regular view files * 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 * 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. * in your Controller to use the ThemeView.
* *
* Example of theme path with `$this->theme = 'super_hot';` Would be `app/views/themed/super_hot/posts` * Example of theme path with `$this->theme = 'super_hot';` Would be `app/views/themed/super_hot/posts`