Created
July 11, 2017 14:08
-
-
Save JoaoVagner/174e7849d50cee46c7cd0ce4ea78c17f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$this->get('/deleteall', function ($request, $response, $args) { | |
$params = $_GET; | |
$modelSkyhub = new ModelSkyhubCategories(); | |
$categoriesSkyhub = $modelSkyhub->getCategories($params); | |
foreach ($categoriesSkyhub as $key => $category) { | |
$delete = $modelSkyhub->delete($category['code']); | |
flush(); | |
ob_flush(); | |
var_dump($category['code']); | |
// echo $delete; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment