for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
*@author nicolaas[at]sunnysideup.co.nz
*@description: adds functionality to controller for dev purposes only
*
**/
class TemplateoverviewPageDecorator extends SiteTreeExtension
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
public function updateSettingsFields(FieldList $fields)
if ($this->owner->hasMethod('getHowToMakeThisTemplateWorkArray')) {
$array = $this->owner->getHowToMakeThisTemplateWorkArray();
if (is_array($array) && count($array)) {
$fields->addFieldToTab("Root.Help", new LiteralField(
"HowToMakeThisPageWork",
'<h3 id="HowToMakeThisPageWorkHeader">'._t("TemplateoverviewPageDecorator.HOWTOMAKEITWORKHEADER", "How to make this page work").'</h3>'
.'<ul id="HowToMakeThisPageWorkList"><li>'.implode("</li><li>", $array).'</li></ul>'
));
}
$obj = TemplateoverviewDescription::get()
->filter(array("ClassNameLink" => $this->owner->ClassName))
->First();
if ($obj) {
$fields->addFieldToTab("Root.Help", new LiteralField("MoreHelp", $obj->renderWith("TemplateoverviewPageCMSDetail")));
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.