-
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
| 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.
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.
The Views directory is hard-coded when searching for a template. You can skip this part Blog\Views\ == Blog\
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.
Thanks for explaining
| (specifying the end directory ``Views`` as an ``Example\Blog\Views\`` not required): | |
| (specifying the end directory ``Views`` as in ``Example\Blog\Views\`` is not required): |
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: