Won*_*and 26
好的解决了.
可以通过以下方式访问父块:
$this->getParentBlock();
Run Code Online (Sandbox Code Playgroud)
所以在这个特殊场景中:
$searchCount = $this->getParentBlock()
->getParentBlock()
->getParentBlock()
->getResultCount();
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
9722 次 |
| 最近记录: |