-
Notifications
You must be signed in to change notification settings - Fork 2k
docs: Explanations for the View
#9755
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
base: develop
Are you sure you want to change the base?
Conversation
|
|
||
| .. important:: You can't set properties that are declared as private during cell | ||
| initialization. | ||
| Call ``getDataProperty()``, ``getViewProperty()`` methods are not available - they are used for internal processes. |
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.
I think you meant "Calling" here?
| Call ``getDataProperty()``, ``getViewProperty()`` methods are not available - they are used for internal processes. | |
| Calling ``getDataProperty()`` and ``getViewProperty()`` methods are not available - they are used only for internal processes. |
| <?php foreach ($items as $item): ?> | ||
| <?= $this->setData(['item' => $item])->include('item_card') ?> | ||
| <?php endforeach ?> | ||
| <?= $this->endSection() ?> No newline at end of file |
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.
Can you add an EOL whitespace here?
|
|
||
|
|
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.
Why add 2 extra whitespace?
| Following this | ||
| example, you could load the **blog_view.php** file from **example/blog/Views** by prepending the namespace to the view name: | ||
| example, you could load the **blog_view.php** file from **example/blog/Views** by prepending the namespace to the view name | ||
| (specifying the end directory ``Views`` as an ``Example\Blog\Views\`` not required): |
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.
I don't understand this part.
Description
Improving the description
View.getDataProperty(),getViewProperty()or$this->data,$this->view. I didn't quite understand the prohibition for data.$viewproperty is not specified, as this is the fullpath to the file, and not, as for theView, a relative name (with a namespaceBlog\Cells\alerts).include()works, so I described my case.Checklist: