Slimore
  • Namespace
  • Class

Namespaces

  • None
  • Slimore
    • Cache
      • Exception
    • Captcha
    • Database
    • Debug
    • Http
    • Image
    • Log
    • Middleware
    • Mvc
    • Pagination
    • Upload

Classes

  • Application
  • Controller
  • Model
  • View

Exceptions

  • Exception

Class Application

Class Application

Slim\Slim
Extended by Slimore\Mvc\Application
Namespace: Slimore\Mvc
Package: Slimore\Mvc
Author: Pandao
Located at Slimore/Mvc/Application.php

Methods summary

public
# __construct( array $settings = null )

Constructor

Constructor

Parameters

$settings
null
public
# init( )

Application Initialization method

Application Initialization method

public
# run( )

Override Slim run method

Override Slim run method

protected
# errorsHandle( )

Errors / Exceptions handle

Errors / Exceptions handle

public mixed
# dbConnection( array $configs = null, string $name = 'default', boolean $enableQueryLog = true )

Configure the database and boot Eloquent

Configure the database and boot Eloquent

Parameters

$configs
null
$name
default
$enableQueryLog
true

Returns

mixed
public
# moduleNamespace( string $namespace, callable $callback )

Modules namespace route handle method

Modules namespace route handle method

Parameters

$namespace
$callback
public
# controller( string $controller, callable $callback, string $namespace = '' )

Route controller handle

Route controller handle

Parameters

$controller
$callback
$namespace
public
# autoRoute( boolean $stop = false )

Auto router method

Auto router method

Parameters

$stop
false
protected
# __autoload( string $className )

Autoload callable method

Autoload callable method

Parameters

$className
protected
# autoloads( )

SPL autoload register method

SPL autoload register method

public number
# timeStart( )

Run time start

Run time start

Returns

number
public number
# timeEnd( integer $decimal = 6 )

Run end time

Run end time

Parameters

$decimal
6

Returns

number

Properties summary

public string $version
# '0.1.0'
protected array $defaults

$defaults

$defaults

# [ 'path' => '', 'baseURL' => '', 'timezone' => 'Asia/Shanghai', 'templates.path' => '../app/views', 'cookies.encrypt' => true, 'cookies.secret_key' => 'vadsfas', 'modules' => [], 'defaultModule' => '', 'disabledModules' => '', 'template.suffix' => '.php', 'x-framework-header' => true, 'mvcDirs' => [ 'controller' => 'controllers', 'model' => 'models', 'view' => 'views' ], 'autoloads' => [], 'defaultAutoloads' => [ '../app/controllers', '../app/models', ], 'db' => [] ]
public string $path
#
public string $baseURL
#
public mixed $db
#
public number $startTime
#
public string $moduleName
# ''
public string $controllerName
#
public string $actionName
#
protected array $routeInfo
#
Slimore API documentation generated by ApiGen