PHP Classes

File: tests/index.php

Recommend this page to a friend!
  Classes of Maik Greubel   Caribu MVC   tests/index.php   Download  
File: tests/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Caribu MVC
MVC framework with controllers using annotations
Author: By
Last change:
Date: 6 years ago
Size: 448 bytes
 

Contents

Class file image Download
<?php
require dirname(__FILE__) . '/../vendor/autoload.php';

use \
Generics\Logger\ExtendedLogger;
use \
Nkey\Caribu\Mvc\Application;

// Preparing
Application::getInstance()->registerController('\Nkey\Caribu\Mvc\Tests\SimpleController')
    ->
setDefaults('Simple')
    ->
registerViewControl('form', '\Nkey\Caribu\Mvc\View\Controls\Form')
    ->
enableSession()
    ->
setLogger(new ExtendedLogger());

// Serving
Application::getInstance()->serve();