mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Updating example code in comment to reflect renaming of Controller::$view to Controller::$viewClass. Closes #1579
This commit is contained in:
parent
c8f33b77a1
commit
95d44c3694
2 changed files with 2 additions and 2 deletions
|
@ -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',
|
||||||
|
|
|
@ -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`
|
||||||
|
|
Loading…
Add table
Reference in a new issue