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 > Error Page

    When you need to distribute the error to proper error page or loging and something.
    And you can custormize to fit your site very easily.
    Below is example.

    public function pageNotFound() {
        //Log::writeLog("page not found",LOG_ERROR);
        include_once(VIEWS_PATH."/errors/error.html");
        exit();
    }

    public function pageForbidden() {
        //Log::writeLog("page forbidden",LOG_ERROR);
        include_once(VIEWS_PATH."/errors/error.html");
        exit();
    }

    public function pageNotAccessed() {
        //Log::writeLog("page not accessed ",LOG_ERROR);
        include_once(VIEWS_PATH."/errors/error.html");
        exit();
    }