PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Ettore Moretti   MVC Tool   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: MVC Tool
Generate model classes to access database tables
Author: By
Last change: MVC Tool - Automatic Model Generator
Date: 2 years ago
Size: 285 bytes
 

Contents

Class file image Download
<?php
require_once 'modelGenerator.class.php';

$db = new PDO("mysql:host=localhost;dbname=timebarter", 'root', '', null);
$table='old_log_table';
$outPath='ModelFolder/';

$myModelGenerator= new ModelGenerator($db, $outPath);
$myModelGenerator->createModelFromTableOrView($table);