PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Ali YILMAZ   PHP PhoneBook   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP PhoneBook
Phone book manager application based on MVC
Author: By
Last change:
Date: 3 years ago
Size: 605 bytes
 

Contents

Class file image Download
<?php

require_once './Mind.php';

$conf = array(
   
'host' => 'localhost',
   
'dbname' => 'mydb',
   
'username' => 'root',
   
'password' => ''
);

$Mind = new Mind($conf);


$Mind->route('/', 'app/views/index', array('app/database/install', 'app/model/ListModel'));
$Mind->route('add', 'app/views/add', array('app/controller/RecordController:add'));
$Mind->route('edit:id', 'app/views/edit', array('app/model/RecordModel', 'app/controller/RecordController:edit'));
$Mind->route('remove:id', 'app/views/remove', array('app/model/RecordModel', 'app/controller/RecordController:remove'));