Yii View 10.0
2024-06-28
631次浏览
Yii View 10.0 版本包已经发布了。
Changed logic of template file searching in ViewInterface::render()
:
- the absolute path to the view file, e.g. "/path/to/view.php";
- the name of the view starting with
//
to join the base path, e.g. "//site/index"; - the name of the view starting with
./
to join the directory containing the view currently being rendered (i.e., this happens when rendering a view within another view), e.g. "./widget"; - the name of the view without the starting
//
or./
(e.g. "site/index"), so view file will be looked for under the view path of the context set viawithContext()
(if the context instance was not setwithContext()
, it will be looked for under the base path). RemovedViewInterface::renderFile()
.
Changed exception from RuntimeException
to LogicException
when the view cannot be resolved in ViewInterface::render()
.
新闻归档
热门标签
- yii3
- 扩展
- 发布
- yii2
- debug
- auth client
- view
- bootstrap
- release
- html
- redis
- apidoc
- Yii 2.0
- Yii 1.1
- mongodb
- mailer
- extensions
- twig
- gii
- queue
- runner
- http 客户端
- console
- validation
- cache
- sphinx
- widget
- hydrator
- translator
- symfonymailer
- db
- http
- log
- error handler
- config
- swiftmailer
- 图书
- imagine
- assets
- i18n
- IDE
- swagger
- elasticsearch
- router
- csrf
- smarty
- definitions
- logging
- fastroute
- user