Commit 00ce3a3a by Vasiliy Baukin

Update structure-views.md

- We do not generate static pages in controllers, but merely output them. - We need to say that the data is needed to be plainly put into the view, as the reader might expect something more sophisticated to happen here.
parent 82b2f795
......@@ -658,7 +658,7 @@ For example, the following code injects the current date at the end of the page
Static pages refer to those Web pages whose main content are mostly static without the need of accessing
dynamic data pushed from controllers.
You can generate static pages using the code like the following in a controller:
You can output static pages by putting their code in the view, and then using the code like the following in a controller:
```php
public function actionAbout()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment