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 > Direct Access HTTP

    Features


    - Best Performance.
    - No need Router Rule.
    - Backender and Frontender can be separated apparently.
    - Backender just makes model.
    - Frontender can choose the model they want.
    - No need to add the configure of apache but if you want to rewrite ,you can add.
    - When you use the ajax , you need the view page for processing the ajax.
    - If you want to handle the URL, you need the rewrite setting in apache.

    How to Set up


    Direct Access is most simplest to set up.
    1) copy the thule's views directory to apache doc-root directory.
    2) make view files like below.
    3) set the gate.php to fit your environment.

    Discription


    If you want to program like pure php-coding , you can do that and get the high performance almost 70% pure-php however you can still get the strong point of using framework.
    There are two options for turn-off the template-engine.
    1) turn off over hole site
    2) turn off at partial site

    Turn off hole site


    If you want to turn off the template-engine over hole site , you should do like below.
    file : config/define.php

    define ('TEMPLATE_ENGINE',TRUE); // turn on template engine
    ==>
    define ('TEMPLATE_ENGINE',FALSE); // turn off template engine

    Turn off partial site


    But you don't want to turn the template-engine off in partial site, see below.
    each view file which you want to turn off

    ${'controller.action'}=array('contorller.action'=>'sample.sample','template'=>FALSE);

    How to access


    Imagine your HTTP is http://domain/mvc/template.php.
    And view directory /mvc and file template.php , it is same as without framework and rewrite-rule.
    Below is top of "DOCROOT/mvc/template.php".

    <?php ${'controller.action'}=array('controller.action'=>'vm.f1','template'=>FALSE);
    include_once($_SERVER['DOCUMENT_ROOT']."/gate.php"); ?>

    more detail in View Chapter