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 > Config

    Config class helps you to find the part of configure what you want.config file is config/dev_config.php(and stage_config.php,real_config.php).

    Thule provides the functionality of multiserver configuration for good development envrionment. Most web development envrionment has 3 layor of development process which are , keep developing in development server deploy to stage server which is for testing befor live and deploy to live.

    Each step needs to have each envrionment configure.

    Setting in configure server

    You can set the configure server in thulef.php

    Thule_Config::setConfig("dev"); // "stage","real"

    Setting in configure

    You can fetch the data from the configuration.

    config/dev_config
    ............
    $config['setting']="Hello";
    .............

    Get from configure

    $hi=Thule_Config::get("setting"); //$hi="Hello"

    Set to configure

    You can set the data to the configuration.

    Thule_Config::set("hi","Hello");
    $hi=Thule_Config::get("hi") //$hi="Hello"

    Set configure.ini

    You can set configure in configure.ini which is embeded on php but little bit more features..

    Thule_Config::setConfig("configure.ini","development","ini"); // configure-file , server stage , configure-type