Working with Routes

Table of Contents

  1. Setup
  2. Caveats
  3. Related links

Setup

  • works with >= PHP 5.2.3
  • set your pear package manager to the system pear repo
$ pear channel-discover pear.horde.org
$ pear install horde/Horde_Routes
  • login as admin and in Config -> General
Input URL handlers = Horde_Routes
Additional include path = /path/to/pear/system/dir
  • edit your routes here
seagull/var/routes.php

That's it for now.

Caveats

  • When using Horde_Routes single arg url construction invalid, eg: SGL_Output::makeUrl('search'), instead you must use SGL_Output::makeUrl('search', 'usersearch', 'usersearch')
  • http://dev.horde.org/routes/
  • http://pear.horde.org/index.php?package=Routes