for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
class FacebookMetadataSiteConfig extends DataExtension
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 static $db = array(
'SkipToMainContentAccessKey' => 'VarChar(1)',
);
public static $has_one = array(
'FacebookLogo' => 'Image',
public function updateCMSFields(FieldList $fields)
$fields->renameField('SkipToMainContentAccessKey', _t('AccessKey.SKIP_TO_MAIN_CONTENT_ACCESS_KEY'));
$fields->addFieldToTab('Root.FacebookMetadata', new UploadField('FacebookLogo', _t('Facebook.METADATA_LOGO',
'Image that will show in facebook when linking to this site. The image should be a square of minimum size 200px')));
}
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.