{"action":"created","issue":{"url":"https://api.github.com/repos/qcubed/framework/issues/706","labels_url":"https://api.github.com/repos/qcubed/framework/issues/706/labels{/name}","comments_url":"https://api.github.com/repos/qcubed/framework/issues/706/comments","events_url":"https://api.github.com/repos/qcubed/framework/issues/706/events","html_url":"https://github.com/qcubed/framework/issues/706","id":89250649,"number":706,"title":"How to export file xml from QDataGridColumn to zip file for download from a button QCubed/QCodo","user":{"login":"olegabr","id":2850808,"avatar_url":"https://avatars.githubusercontent.com/u/2850808?v=3","gravatar_id":"","url":"https://api.github.com/users/olegabr","html_url":"https://github.com/olegabr","followers_url":"https://api.github.com/users/olegabr/followers","following_url":"https://api.github.com/users/olegabr/following{/other_user}","gists_url":"https://api.github.com/users/olegabr/gists{/gist_id}","starred_url":"https://api.github.com/users/olegabr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olegabr/subscriptions","organizations_url":"https://api.github.com/users/olegabr/orgs","repos_url":"https://api.github.com/users/olegabr/repos","events_url":"https://api.github.com/users/olegabr/events{/privacy}","received_events_url":"https://api.github.com/users/olegabr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-18T09:58:16Z","updated_at":"2015-06-18T12:33:36Z","closed_at":null,"body":"@alvin zefanya\n\nits my code .. any can help me guys :(\n\npublic function btnZipDownload_Click($zip, $key, $base) {\n\nforeach($this->GetAllControls() as $objControl) {\n\nif (substr($objControl->ControlId, 0, 11) == 'chkSelected') {\n\n$zip = new ZipArchive;\n\nif ($zip->open('somefile.zip') === TRUE) {\n\nfor ($i = 0; $i < $zip->numFiles; $i++) {\n\nif ($objControl->$couples) {\n\n$couples[]=array('filename'=>'./somenewfile.ext','localname'=>$zip->getNameIndex($i));\n\n}\n\n}\n\n}\n\nforeach ($couples as $couple) $zip->addFile($couple['filename'],$couple['localname']);\n\n$zip->close();\n\n}\n\n}\n\n}\n\n}\n\nhttp://stackoverflow.com/questions/30912084/how-to-export-file-xml-from-qdatagridcolumn-to-zip-file-for-download-from-a-butt"},"comment":{"url":"https://api.github.com/repos/qcubed/framework/issues/comments/113140375","html_url":"https://github.com/qcubed/framework/issues/706#issuecomment-113140375","issue_url":"https://api.github.com/repos/qcubed/framework/issues/706","id":113140375,"user":{"login":"ubs","id":620939,"avatar_url":"https://avatars.githubusercontent.com/u/620939?v=3","gravatar_id":"","url":"https://api.github.com/users/ubs","html_url":"https://github.com/ubs","followers_url":"https://api.github.com/users/ubs/followers","following_url":"https://api.github.com/users/ubs/following{/other_user}","gists_url":"https://api.github.com/users/ubs/gists{/gist_id}","starred_url":"https://api.github.com/users/ubs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubs/subscriptions","organizations_url":"https://api.github.com/users/ubs/orgs","repos_url":"https://api.github.com/users/ubs/repos","events_url":"https://api.github.com/users/ubs/events{/privacy}","received_events_url":"https://api.github.com/users/ubs/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T12:33:35Z","updated_at":"2015-06-18T12:33:35Z","body":"A bit more context/details will help. At present I can only hazard a guess at what is being asked here."}}