mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-29 13:57:50 +08:00
pull origin
This commit is contained in:
@@ -46,12 +46,14 @@ class ApiRenderer extends BaseApiRenderer implements ViewContextInterface
|
||||
* @var string path or alias of the view file to use for rendering the index page.
|
||||
*/
|
||||
public $indexView = '@yii/apidoc/templates/html/views/index.php';
|
||||
|
||||
/**
|
||||
* @var View
|
||||
*/
|
||||
private $_view;
|
||||
private $_targetDir;
|
||||
|
||||
|
||||
public function init()
|
||||
{
|
||||
parent::init();
|
||||
|
||||
@@ -34,6 +34,7 @@ abstract class GuideRenderer extends BaseGuideRenderer
|
||||
private $_view;
|
||||
private $_targetDir;
|
||||
|
||||
|
||||
public function init()
|
||||
{
|
||||
parent::init();
|
||||
|
||||
@@ -23,10 +23,12 @@ if (empty($see)) {
|
||||
} else {
|
||||
echo '<p>See also:</p><ul>';
|
||||
foreach ($see as $ref) {
|
||||
if (substr($ref, -1, 1) != '>') {
|
||||
$ref .= '.';
|
||||
if (!empty($ref)) {
|
||||
if (substr_compare($ref, '>', -1, 1)) {
|
||||
$ref .= '.';
|
||||
}
|
||||
echo "<li>$ref</li>";
|
||||
}
|
||||
echo "<li>$ref</li>";
|
||||
}
|
||||
echo '</ul>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user