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

    Uri helper is made for more convience of uri.It is very useful to use the paging helper.

    Paging

    $FE->loadHelper(array("paging","uri","date"));
    $FE->Paging->initialize($FE->Uri->getRequest("c"),$FE->Uri->makeLink(2,"type")."&c=",10);

    Get Request

    $FE->Uri->getRequest("c");

    Get Server

    $FE->Uri->getServer("server-variable");

    Get makeLink

    // current uri : forum/post
    $FE->Uri->makeLink(1,array("a"=>1,"b"=>2); // forum?a=1&b=2

    Get uri

    // current uri : forum/post
    $FE->Uri->getUri(0,1); // forum

    Get uri with assoc

    // current uri : forum/post/a/1/b/2
    $FE->Uri->getUriAssoc(0); //array(a=>1,b=>2 )
    $FE->Uri->getUriAssoc(0,a); // 1