private function destroy_model($plugin, $name) { $plugin_app_path = $this->get_plugin_app_path($plugin); $file = new MvcFile(); $name_underscore = MvcInflector::underscore($name); $target_path = $plugin_app_path . 'models/' . $name_underscore . '.php'; $file->delete($target_path); }
private function create_file($path, $content) { $file = new MvcFile($path); $file->write($content); }