/** * Construct the uploader * * @param string id */ public function __construct($id) { parent::__construct($id); $this->widget = Kendo::createUpload('#' . $id); $this->addAttribute('name', $id); }