The core of the framework.

package Fuel
subpackage Core

 Methods

Always load packages, modules, classes, config & language files set in always_load.php config

always_load(array $array) 

Parameters

$array

array

what to autoload

Cleans a file path so that it does not contain absolute file paths.

clean_path(string $path) : string

Parameters

$path

string

the filepath

Returns

stringthe clean path

Cleans up Fuel execution, ends the output buffering, and outputs the buffer contents.

finish() : void

access public

Initializes the framework.

init($config) : void

This can only be called once.

access public

Parameters

$config

Includes the given file and returns the results.

load(string $file) : mixed

Parameters

$file

string

the path to the file

Returns

mixedthe results of the include

Takes a value and checks if it is a Closure or not, if it is it will return the result of the closure, if not, it will simply return the value.

value(mixed $var) : mixed

Parameters

$var

mixed

The value to get

Returns

mixed

Generates a base url.

generate_base_url() : string

Returns

stringthe base url

__construct()

__construct() 

 Properties

 

$encoding

$encoding 

 

<p>The Fuel environment</p>

$env : string

 

<p>Whether Fuel has been initialized</p>

$initialized : bool

 

$is_cli

$is_cli 

 

$is_test

$is_test 

 

$locale

$locale 

 

<p>Whether to display the profiling information</p>

$profiling : bool

 

$timezone

$timezone 

 

$volatile_paths

$volatile_paths 

 

$_paths

$_paths 

 

$packages

$packages 

 Constants

 

<p>constant used for when in development</p>

DEVELOPMENT : string

 

<p>Log everything</p>

L_ALL : int

 

<p>Log debug massages and below</p>

L_DEBUG : int

 

<p>Log errors only</p>

L_ERROR : int

 

<p>Log info massages and below</p>

L_INFO : int

 

<p>No logging</p>

L_NONE : int

 

<p>Log warning massages and below</p>

L_WARNING : int

 

<p>constant used for when in production</p>

PRODUCTION : string

 

<p>constant used for when testing the app in a staging env.</p>

STAGING : string

 

<p>constant used for when in testing mode</p>

TEST : string

 

<p>The version of Fuel</p>

VERSION : string