core/console/controller_console.php 1 location
|
@@ 106-112 (lines=7) @@
|
103 |
|
$file = APP_PATH . "controllers/$clean_path"; |
104 |
|
|
105 |
|
// si es un directorio |
106 |
|
if (is_dir($file)) { |
107 |
|
$success = FileUtil::rmdir($file); |
108 |
|
} else { |
109 |
|
// entonces es un archivo |
110 |
|
$file = "{$file}_controller.php"; |
111 |
|
$success = unlink($file); |
112 |
|
} |
113 |
|
|
114 |
|
// mensaje |
115 |
|
if ($success) { |
core/console/model_console.php 1 location
|
@@ 85-91 (lines=7) @@
|
82 |
|
$file = APP_PATH.'models/'.trim($model, '/'); |
83 |
|
|
84 |
|
// si es un directorio |
85 |
|
if (is_dir($file)) { |
86 |
|
$success = FileUtil::rmdir($file); |
87 |
|
} else { |
88 |
|
// entonces es un archivo |
89 |
|
$file = "$file.php"; |
90 |
|
$success = unlink($file); |
91 |
|
} |
92 |
|
|
93 |
|
// mensaje |
94 |
|
if ($success) { |