我一直在寻找this tutorial但在Apache日志获取分段错误错误。如何另一个页面上添加一个简单的页面Silverstripe(3.0.5)的管理区域添加到Silverstripe CMS管理
我认为问题是“customHelp.php”中的“索引”方法 - 当我将“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();
}
}
为什么你认为这个问题是用食指方法是什么?你能对错误更具体吗?你在customHelp.ss文件中有什么? – drzax 2013-04-23 05:07:38
我刚刚在我的网页(URL为http://mysite.local/admin/customHelp/)中收到“No data received - server sent no data”。例如,如果我将index()重命名为xindex(),管理网站加载正常,可能是因为该方法没有被调用。我的“customHelp.ss”是一样的教程页面上(存储在/ customHelp /模板) – finster 2013-04-23 19:16:00