for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
class AutoCompleteDropdownField extends DropdownField
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 __construct($name, $title=null, $source=array(), $value='', $form=null, $emptyString=null)
parent::__construct($name, $title, $source, $value, $form, $emptyString);
$this->addExtraClass('dropdown');
Requirements::javascript(FRAMEWORK_DIR . '/thirdparty/jquery-entwine/dist/jquery.entwine-dist.js');
Requirements::javascript('cms_tricks_for_apps/javascript/jquery-ui-1.10.4.custom.min.js');
Requirements::javascript('cms_tricks_for_apps/javascript/autocompletedropdownfield.js');
}
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.