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: 9 months ago
Size: 605 bytes


Class file image Download

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'));

For more information send a message to info at phpclasses dot org.