Thule - 0.9.6
  • Welcome
  • Introduction
  • - MVC(Model-View-Controller)
    - Architecture of Framework
    - Flow Chart of Application
    - Services In One Server
    - Developing Guide
    - Features
  • Installation
  • Getting Started
  • - Direct Access HTTP
    - Router Access HTTP
    - Router Direct Access HTTP
    - Reserved Function
    - Convention
    - Bootstrap
    - Pack Javascript , CSS
  • Basic Modules
  • - Model
    - View
    - Controller
  • Libraries
  • - Router
    - Config
    - Response
    - Request
    - Database
    - Query
    - Cache
    - Debug
    - Log
    - Unit Test
    - Registry
    - Profile
  • Helper
  • - Auth
    - Calendar
    - Date
    - Error page
    - Email
    - Form
    - GeoIP
    - Google
    - Html Element
    - Html
    - Http
    - I18n
    - Image
    - Json
    - Jquery
    - Login
    - Layout
    - Locale
    - PHP to Javascript
    - Paging
    - Payflow
    - Soap
    - Text
    - Table
    - Uri
    - Upload
    - Validation
  • Plugins
  • - Smarty Template Engine
  • History
  • Home > Bootstrap

    Bootstrap is for being ready to start the service .

    Where is Bootstrap

    Bootstrap is located in application directory as bootstrap.php file.

    How to USE

    Bascially Bootstrap has some defined functions which are minimum options to start the service.

    This bootstrap is very simple however it should porvide more convenient to setup for multi-server based service.

    Setup the configure environment dynamically from the url

    if($_SERVER["SERVER_NAME"] == "development") {
    Thule_Config::setConfig("configure.ini","development","ini"); // configure-file , server stage , configure-type

    // profile setting
    Thule_Profile::set();

    // debug popup TRUE or FALSE
    Thule_Profile::debug(TRUE);

    // error_reporting
    error_reporting(Thule_Config::get('error_reporting'));
    } else {
    Thule_Config::setConfig("configure.ini","production","ini"); // configure-file , server stage , configure-type
    }