Welcome to mirror list, hosted at ThFree Co, Russian Federation.

tutorial_url_creator.php « tutorial « docs « Url « ezcomponents « libs - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: faaddbbf8ef49f72b66809369c2c037b2c444cde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
require_once 'tutorial_autoload.php';

// register an url under the alias 'map'
ezcUrlCreator::registerUrl( 'map', '/images/geo?xsize=450&ysize=450&zoom=4' );

// display the the url prepended to map_norway.gif
var_dump( ezcUrlCreator::prependUrl( 'map', 'map_norway.gif' ) );

// display the the url prepended to map_sweden.gif
var_dump( ezcUrlCreator::prependUrl( 'map', 'map_sweden.gif' ) );

// display the stored url under the alias 'map'
var_dump( ezcUrlCreator::getUrl( 'map' ) );

?>