New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
repaire help on View class document #7953
Conversation
Wouldn't |
oh , ok good idea |
I do actually like the example. Gives you an idea where to place it. |
@ionas But that should be in the docs (where it can be easily found with all the scope relevant things like namespace and use statements), not the doc block! |
Agreed! |
And it is. http://book.cakephp.org/3.0/en/views/themes.html#themes |
* `public function beforeRender(\Cake\Event\Event $event) | ||
* { | ||
* $this->viewBuilder()->theme('SuperHot'); | ||
* }` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Examples should start with 3 backticks.
Short examples in the API are 👍. We have lots of examples already and more make the API a more useful resource in my opinion. |
@markstory I think documentation can put those examples in better perspective. The API doc block can only do that much without getting out of hand. In this example one could easily add the theme() call inside beforeRender() as well as any other callback prior to that one - or even the action itself. |
repaire help on View class document
No description provided.