nano4init.php

Nano4 Framework Engine

A modular, extendible, object-oriented engine for building PHP web applications. This is the 4rd generation engine and requires PHP 5.4 or higher.

Classes

Exception The base class for Nano Exceptions
Nano The base class for the Nano framework.

Functions

get_php_content()

get_php_content(  $__view_file,   $__view_data = NULL) 

Get the output content from a PHP file.

This is used as the backend function for all View related methods.

Parameters

$__view_file
$__view_data

register()

register(  $opts = array()) 

Set up autoloader.

Parameters

$opts

initialize()

initialize(  $opts = array()) 

Create and initialize a Nano4 object.

This also sets up the autoloader unless 'skip_autoload' is true.

Parameters

$opts

get_instance()

get_instance() 

Get the current Nano4 instance.