Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 private function create_file($path, $content)
 {
     $file = new MvcFile($path);
     $file->write($content);
 }