我一直在查看本教程,将一个简单的页面添加到 Silverstripe (3.0.5) 的管理区域,但在 apache 日志中出现分段错误错误。
我认为问题在于“customHelp.php”中的“index”方法 - 当我将“index”重命名为其他名称时,我没有崩溃,并且在管理菜单中出现了一个条目,但是当我单击它时显然没有显示任何内容.
这是我的“customHelp.php”的内容 - 有人可以指出我正确的方向吗?
<?php
class customHelp extends LeftAndMain {
static $url_segment = "customHelp";
static $menu_title = "Site Help";
static $allowed_actions = array ('customHelp');
public function index() {
return $this->renderWith('customHelp');
}
public function init() {
parent::init();
}
}