The following are ourShun Yi Network Some of the experience of the company's development project
We can use renderpartial to access some of the view files stored in the Views folder of different controllers.
In Yii1.1.3, we use the double slash "//" and the program starts the search from the View folder, for example:
protected/views/library/_book.php
RenderPartial ('//library/_book ', Array (' books ' = $books))
If you start the search using a single slash "/", the program will jump out of the current active module and search from the application's view path.
This article by the focus on the Chengdu website Construction of the letter Easy network release, more information about Yii please pay attention to the letter easy network subsequent release, the letter Easy Network's official website http://www.ir58.com
http://www.bkjia.com/PHPjc/768208.html www.bkjia.com true http://www.bkjia.com/PHPjc/768208.html techarticle The following are some of the experiences we end up with when we develop a project in the trust and networking company. We can use renderpartial to access a partial view of a view folder stored in a different controller ...