Overview

Classes

  • Ws_logged_inModel
  • Ws_permissionsModel
  • Ws_role_permModel
  • Ws_rolesModel
  • Ws_user_roleModel
  • Ws_userModel
  • WsAuth
  • WsauthController
  • WsChart
  • WsConfig
  • WsController
  • WsDatabase
  • WsForm
  • WsImage
  • WsLocalize
  • WsModel
  • WsModelForm
  • WsModelGridView
  • WsUrl

Functions

  • __autoload
  • callHook
  • WsErrorHandler
  • Overview
  • Class

Class WsUrl

WsUrl Constructs URLs.

Example usage:

// returns '/server_address/site/index/'
// returns '/server_address/index.php?request=site/index'
// servers.
$url = WsUrl::link('site', 'index');

// returns '/server_address/site/edit_item/id=2/'
// returns '/server_address/index.php?request=site/index&id=2'
$url = WsUrl::link('site', 'index', array('id'=>2));

// points to file '/server_name/public/js/jquery.min.js'
$asset = WsUrl::asset('js/jquery.min.js');
Located at WsUrl.class.php
Methods summary
public static string
# link( string $controller, string $action, array $params = array() )

Constructs URL address.

Constructs URL address.

If web page is served by Apache HTTP server then uses mod_rewrite and .htaccess file to construct prety urls. On other web servers returns standard url string in form '/index.php?request='.

Parameters

$controller
Name of controller.
$action
Name of controller action.
$params
Optional parameters

Returns

string
$url
public static string
# asset( string $file )

Construct URLs for static files.

Construct URLs for static files.

Static files are placed in /public directory.

Parameters

$file
File name

Returns

string
$asset
API documentation generated by ApiGen